$result=("select * FROM blablabla ") ;
while($row = mysql_fetch_array($result))
{$another=("select * FROM blablabla ") ;
while($dow = mysql_fetch_array($another)){} }
这不起作用请给我一个提示
答案 0 :(得分:2)
您实际上并未运行查询:
$result=mysql_query("select * FROM blablabla ") ;
while($row = mysql_fetch_array($result))
{
// do stuff
}
Please, don't use mysql_*
functions in new code。它们不再被维护and are officially deprecated。请参阅red box?转而了解prepared statements,并使用PDO或MySQLi - this article将帮助您确定哪个。如果您选择PDO here is a good tutorial。
答案 1 :(得分:0)
也许你的意思是,
$result = mysql_query("select * FROM blablabla ") ;
while($row = mysql_fetch_array($result))
{
}
答案 2 :(得分:0)