Reply to Re: mysql_fetch_array

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация