RE: [PHP] Selecting max(id) of a table

From: Date: Mon, 22 Jan 2001 22:22:06 +0000
Subject: RE: [PHP] Selecting max(id) of a table
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36099@lists.php.net to get a copy of this message
If you are using auto-incrementing id column mysql_num_rows won't give you a reliable number try $max=mysql_result($result, 0); -----Original Message----- From: Liam Gibbs [mailto:lgibbs@microlegend.com] Sent: Monday, January 22, 2001 1:48 PM To: php-general@lists.php.net Subject: Re: [PHP] Selecting max(id) of a table > $max=mysql_result($result); $max = mysql_num_rows($result). - the L -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#36099) next »