MYSQL Tips -- LAST_INSERT_ID
Use PHP to call mysql. The built-in LAST_INSERT_ID() function may not be used by many people. The most used one is mysql_insert_id(); In fact, there is a difference between the two. LAST_INSERT_ID() can return bigint value id. However, mysql_insert_id returns int. If your id is unsigned int, or bigint. So, maybe what is returned is wrong. Use LAST_INSERT_ID() instead.
|