ntroycondo Posted June 28, 2010 Share Posted June 28, 2010 I'm trying to finalize a project that connects tables within a DB. My given example has table of products and a table of product reviews. I've seen use of create php pages that reference an ID such as http://example.net/model.php?id=33 that links to http://example.net/reviewmodel.php?id=33 and http://example.net/deletemodel.php?id=33 where the ID in the URL (33 in my example) always references the same product in the different tables. I am thinking that mysql_insert_id() is the tool used to keep these ID numbers in reference? I've looked on google for some examples or tutorial on this type of php script/mysql but haven't had any luck. Any ideas, hints, advice, comments are greatly appreciated and needed. Link to comment https://forums.phpfreaks.com/topic/206031-using-mysql_insert_id-to-generate-urls-with-id/ Share on other sites More sharing options...
Mchl Posted June 28, 2010 Share Posted June 28, 2010 Manual entry for mysql_insert_id should tell you what it does. Link to comment https://forums.phpfreaks.com/topic/206031-using-mysql_insert_id-to-generate-urls-with-id/#findComment-1078065 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.