I create a page of links by querying a database and bringing up a list of businesses. Now what I want to do is have someone click on one of the links and then bring up the specific data for that business (also in the database) How would I encode the information needed into the link I create so it can be be used to query the database. I am assuming I have to link a session variable to each link that will be used as my primary key to query the database the 2nd time.
you can include a primary key in your query and then have a querystring with its value ex: link.php?id=primary_key
serialCoder is correct Create a series of links using the primary keys generated from the database. Then within the link.php access the primary key via $_GET['id']; Have fun