Why does this loop work...
while($row = mysql_fetch_assoc(mysql_query($all)));
...but this one doesn't?
while($row = mysql_fetch_assoc($sql))
Basically they are same. The first one is:
$all ="SELECT * FROM test";
mysql_query($all);
and the second one is:
$sql = mysql_query("SELECT * FROM test");
Originally asked by: rookie on Stack Overflow


Answers