Finding out the highest number in an auto-incrementing table
I have a row in a MySQL table called id, which auto-increments.
I was wondering if anyone knows a PHP solution to find out what the highest number in the row is?
I am thinking perhaps execute a MySQL query that will list the highest number, and then echo the result, like $row[id] in PHP?
Last edited by FlashDancer; 01-21-2012 at 11:32 AM..