krv Posted January 27, 2009 Share Posted January 27, 2009 how reliable is this and is there a better solution to guarantee the last id inserted in a multi user insert process Thanks Link to comment https://forums.phpfreaks.com/topic/142651-solved-my_sql-insert-id/ Share on other sites More sharing options...
rhodesa Posted January 27, 2009 Share Posted January 27, 2009 mysql_insert_id() is reliable. other scripts running at the same time won't affect it's output. the only thing that would is if you ran another INSERT before using the function (it would then give you the new INSERT id) Link to comment https://forums.phpfreaks.com/topic/142651-solved-my_sql-insert-id/#findComment-747701 Share on other sites More sharing options...
krv Posted January 27, 2009 Author Share Posted January 27, 2009 makes sense, thanks. Link to comment https://forums.phpfreaks.com/topic/142651-solved-my_sql-insert-id/#findComment-747715 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.