Nov 14th 08
Getting The Last Auto Increment Field With PHP
On many occasions you need to find the value of the last auto increment field inserted into a MySQL table. For example within my Content Management System if someone creates a new web page and saves it the user is taken back to edit this new page. In order to do this I must retrieve the value of the last auto increment field inserted into the database. To do this I use the php mysql_insert_id();... read more
