Thanks James!!!!!!!!!

It is the perfect answer for my cuestion!!!

Regards! Julian


----- Original Message -----
From: James E. Hicks III
To: Julian ; [EMAIL PROTECTED]
Sent: Monday, April 08, 2002 5:12 PM
Subject: RE: [PHP] mysql question


Why don't you just increment a counter as you are retrieving them.

mysql_select_db("some_DB") or die("DB not available");
$query = "select some_data from some_table";
$result = mysql_query($query);
$rowcounter=0;
while ($row=mysql_fetch_array($result)){
   extract($row);
   $rowcounter++;
   echo("You are on Row $rowcounter wich contains the");
   echo(" data $some_data for the field named some_data");
}

James

-----Original Message-----
From: Julian [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 3:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mysql question


Hi!!!

I want to know if there is a function to know which is the number of the row
that I selected.

Please, help me! Julian


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


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

Reply via email to