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 Quote 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) Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.