![]() |
|
#1
|
|||
|
|||
Creating dynamic links on a multi columnI have a mySQL db which has the fields id, name, street, and description in it. On my website i have a table which dynamically lists all of the "name" entries found in the db, one after the other in Ascending order across multiple columns. This acts as a menu "landing" page.
Here is the code for this: PHP Code:
What I would like to happen is when the user clicks on one of the names listed, it generates a new page which displays all of the fields e.g. name, description, image. In a more simplistic code where i've just had the 1 column listing down the page the code for this was: PHP Code:
I dont know how to incorporate this into the above code. I'm sure it involves editing the code: PHP Code:
|
|
#2
|
||||
|
||||
|
I assume that when you say you want to display another page with all the fields, you meant to say all the fields of a particular record, eh?
Using what you have already, I see a pretty simple solution. In first example of your code, make the following changes: PHP Code:
Just have your URL point to the same PHP script again with the above changes. Does this look like a reasonable solution? Otherwise, if you don't want to run the EXACT script, you could simply make another copy of the necessary code you had with my changes added, and just have your URL point to that. I hope this helps. |
Recent GIDBlog
Prepping for deployment by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SORT / ORDER BY multi columns in MySQL | misunderstood | MySQL / PHP Forum | 3 | 01-Oct-2003 09:01 |
| Building a dynamic website help... | madcat | MySQL / PHP Forum | 4 | 16-May-2003 15:21 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The