Posted by Rik on 07/02/06 14:43
Maximus wrote:
> But the while($row=mysql_query($sql)) {
>
> }
>
> is giving me some infinite loop, the whole pc would freeze as the
> script won't stop
> any solution? or explanation
Should offcourse be:
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)){
}
Now, it's just querying over and over again, and as long as the MySQL
server doesn't return false, it will requery it..
Grtz,
--
Rik Wasmus
[Back to original message]
|