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
Instead of this LAST_INSERT_ID() try to use this one
LAST_INSERT_ID()
mysqli_insert_id(connection)