Hi, I was wondering if anyone could help me figure out a way to load up a php page from a user clicking on a link that changes depending on a query.
Maybe if I fill you in on what I have done,so far it will make more sense. Right now I have a search form page that allows users to make searches, once the search is completed a list of links appears(depending on the search). I'm trying to make it so when a user clicks on a link from the list, data corresponding to that link will load up in a new page.
Could someone please help me with this, or point me in the right direction, Thanks.
Have all the links link to the same php page using a unique url parameter.
E.g
<a href="view.php?id=1">foo</a>
<a href="view.php?id=2">bar</a>
<a href="view.php?id=3">whatever</a>
where the id is unique and is a value from your database.
view.php can then use $_GET['id'] to query the db for the data relating to that id and display the info.
Bookmarks