If you know you're looking for Bob or Mike or John, you could select the
rows each time in your loop as an associative array.

mysql_fetch_array(result, MYSQL_ASSOC)

will do the trick.

"Sp" <[EMAIL PROTECTED]> wrote in message
> If this is my database result from a select then I need to know that Bob
> the 1st result, Mike is the 2nd result and John is the 3rd result ...
> Name     Address
> ======== ===============
> Bob      121 King St.
> Mike     99 Main St.
> John     8433 Albert St.
> Does mysql keep track of this?  I know I could just do a $i++ as I loop
> through the results but I'm doing something recursively so the counter
> doesn't work here.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to