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

2001-01-22 Thread Louis Simpson
g 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL P

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

2001-01-22 Thread Sam Masiello
rom: Chakravarthy K Sannedhi [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 4:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Selecting max(id) of a table Hello all, I am having a table named 'mytable' of 5 rows in a MySQL database. I tried to print '5' wh

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

2001-01-22 Thread Liam Gibbs
> $max=mysql_result($result); $max = mysql_num_rows($result). - the L -- PHP General 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] Selecting max(id) of a table

2001-01-22 Thread Chakravarthy K Sannedhi
Hello all, I am having a table named 'mytable' of 5 rows in a MySQL database. I tried to print '5' which is the highest row onto the screen. I used the following code for that: $result=mysql_query('select max(id) from mytable'); $max=mysql_result($result); print ('Max id in the table=$max'); Bu