Reply to Re: PHP MySQL Single Iteration for data manipulation

Your name:

Reply:


Posted by Garry on 12/02/18 11:51

The problem is that when you do a while($row =
mysql_query_fetch_Assoc($Result)){} it will bring everything in at once and
no opportunity to iterate on an individual level.


"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
news:c9e25$44a18261$8259c69c$16916@news1.tudelft.nl...
> Garry wrote:
>> How do I cycle through a MySQL query result one row at a time so that
>> I can do some work on each individual row, instead of having the
>> whole query scroll by. I need to have the ability to post each row
>> to a form and then work on it, posting the results, then go on to the
>> next row.
>
> Euhm, that's already how it works.
> $result = mysql_query('some query');
> while($row = mysql_fetch_assoc($result)){
> //do some work on the $row
> }
>
> 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

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