Php – How to get latest ID number in a table

MySQLPHP

How can I get the latest ID in a table?

Best Answer

If you mean the latest generated ID from an insert statement with an auto-increment column, then mysql_insert_id() should help ya out