XpertWorlock Posted February 5, 2010 Share Posted February 5, 2010 Pretty simple and understanding. I want to INSERT a row which has an ID that auto increments. Is there anyway of getting that ID back without another query? The only way I have thought is to automatically set the ID, but I would rather have it auto increment Or... if anyone knows where I'm coming from and has a better idea, feel free to share Quote Link to comment https://forums.phpfreaks.com/topic/191070-anyway-to-insert-and-get-id-back/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 5, 2010 Share Posted February 5, 2010 http://php.net/mysql_insert_id Quote Link to comment https://forums.phpfreaks.com/topic/191070-anyway-to-insert-and-get-id-back/#findComment-1007512 Share on other sites More sharing options...
XpertWorlock Posted February 5, 2010 Author Share Posted February 5, 2010 Although your reply was very simple, it couldn't be better, thank you Quote Link to comment https://forums.phpfreaks.com/topic/191070-anyway-to-insert-and-get-id-back/#findComment-1007513 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.