I have a table into which new data is frequently inserted. I need to get the very last ID of the table. How can I do this?
Is it similar to SELECT MAX(id) FROM
SELECT MAX(id) FROM
You can get the latest inserted id by the in built php function mysql_insert_id();
mysql_insert_id();
$id = mysql_insert_id();
you an also get the latest id by
$id = last_insert_id();