Hi,
I have a database driven web site created, where all of the information for the web site, is actually coming out of one database.
I want the pages to be dynamic, in that, when I click on one link, the ID field will be passed into the query, and it will return all of the information for that specific ID. I have a template page, and basically I always want to use the same page, but have the content in the middle change depending on what the ID is.
I have figured out how to associate an ID with a particular link, but I cannot get my page to display at all, I think I have something in the syntax done wrong...here is what i have as the link
<a href = 'PHP_SELF?index.php=$bid' CLASS = "btn"> <? echo($bname); ?></a>
where:
index.php is my template page, $bid is the ID that is being assigned to a certain link and $bname, is just the link name (both variables are returned in a query from the database.
When I select a particular $bname, I want it to pass the associated $bid to another query, and then return the appropriate contents for that $bid....
I hope someone can help....
Thanks,
SP