I have a MySQL question that I think must be quite easy. I need to return the LAST INSERTED ID from table1 when I run the following MySql query:
INSERT INTO
If you need to have from mysql, after your query, the last auto-incremental id without another query, put in your code:
mysql_insert_id();