hello, if i insert a record into table divefile:
and i assign the $new_id to mysql_insert_id.PHP Code:mysql_query( "INSERT INTO divefile(`dive_diverid`, `dive_filename`, `dive_orifilename`) VALUES('$Divername', '$filetype2','$filetype2')" );
$new_id = mysql_insert_id();
the system return the $new_id as 33 if this is the no 33 record.
if later on the same code i insert another record into another table, the $new_id become 0, how should i prevent the value store inside $new_id change?
many thanks.





Bookmarks