|
Posted by Rik on 12/18/36 11:51
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
Navigation:
[Reply to this message]
|