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 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 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 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
Archived
This topic is now archived and is closed to further replies.