note 8666 added to mysql_fetch_array

From: Date: Sat, 23 Sep 2000 01:13:39 +0000
Subject: note 8666 added to mysql_fetch_array
Groups: php.notes 
Request: Send a blank email to php-notes+get-5364@lists.php.net to get a copy of this message
I have a question does anyone have a way of finding out where you are in the result. when running while ($row = mysql_fetch_array ($result)) { stuff here... } is there any way besides setting a counter of finding out what where you are as in i have looped 20 times there are 5 left. Curently i use a counter varable to keep track of where i am i just thought there should be a better way of testing the result to see where you are. kill-9 www.kill-9.dk http://www.php.net/manual/function.mysql-fetch-array.php

« previous php.notes (#5364) next »