use count() to determine number of elements in the array.  Then use the
returned result as an index to the last element.

Or, do you want to get to the last row of a result set from a mysql query?
In which case, go with:
$result = mysql_query(...)...
$rows = mysql_num_rows($result);
mysql_data_seek($result,$rows);

-----Original Message-----
From: Harpreet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 12:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Move next


Do we have a matching command for rs.movelast in PHP to get the data in the
last record of the array

$row=mysql_fetch_array($result);

Regards,
Harpreet Kaur
Software Developer
Crispin Corporations Inc.



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to