/ Published in: PHP
Select the last autoincrement index from the last inserted item in a table.
Expand |
Embed | Plain Text
//Bloqueamos la tabla //Hacemos el insert //Obtenemos el id del proyecto //Desbloqueamos
Comments
Subscribe to comments
You need to login to post a comment.

The same much quicker and cleaner: 1. mysqlquery("INSERT INTO myTable ......"); 2. define('MYID',mysqlinsertid());