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 Link to comment https://forums.phpfreaks.com/topic/38346-retain-values/ 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(); Link to comment https://forums.phpfreaks.com/topic/38346-retain-values/#findComment-183794 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.