Jump to content

using mysql_insert_id() to generate URLs with '?id= '


ntroycondo

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.