master82 Posted February 13, 2007 Share Posted February 13, 2007 An easy one for the experianced programmer/coder... If I insert a new row into table 1, how do i get the unique auto-incremental number of that row so I can then insert more related data into another table (table2)? Thanks Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 13, 2007 Share Posted February 13, 2007 if it's mysql, use $id = mysql_insert_id(); Quote Link to comment 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.