M.O.S. Studios Posted January 14, 2009 Share Posted January 14, 2009 Hey guys, Im working on a form that fills out two tables table 1.information from the form table 2. the rest of the information + the index number from table 1 is there any way to get the index number when the row is inserted? Quote Link to comment https://forums.phpfreaks.com/topic/140854-solved-returning-values-from-a-mysql-roiw-just-added/ Share on other sites More sharing options...
premiso Posted January 14, 2009 Share Posted January 14, 2009 mysql_insert_id should do it. Quote Link to comment https://forums.phpfreaks.com/topic/140854-solved-returning-values-from-a-mysql-roiw-just-added/#findComment-737241 Share on other sites More sharing options...
M.O.S. Studios Posted January 14, 2009 Author Share Posted January 14, 2009 This works perfectly! thanks Quote Link to comment https://forums.phpfreaks.com/topic/140854-solved-returning-values-from-a-mysql-roiw-just-added/#findComment-737252 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.