12-03-2007, 01:54 AM
|
#17 (permalink)
|
|
The Frequenter
Join Date: Sep 2007
Posts: 360
Thanks: 24
|
Quote:
Originally Posted by aristoworks
Taken From: http://us3.php.net/mysql_insert_id
mysql_insert_id() converts the return type of the native MySQL C API function mysql_insert_id() to a type of long (named int in PHP). If your AUTO_INCREMENT column has a column type of BIGINT, the value returned by mysql_insert_id() will be incorrect. Instead, use the internal MySQL SQL function LAST_INSERT_ID() in an SQL query.
|
 You deserve rep for it.
Now, I need to update my scripts. 
|
|
|
|