Jump to content

1000s of pages to be created? Stop/point me to an alternative


rodhow

Recommended Posts

Hello,

 

I am about to upload records into my mysql database that will easily total into the thousands. Each row represents a page so when someone searches for information, the search page displays the requested rows as links. However, I haven't started making the files yet to these links as I would have to create one for every row. Is there an alternative to this madness? Is there a dynamic page script that would display information from that row when the link is clicked on? Can someone point me in the right direction via tutorial, or just give me some information on how to do this. I would not want to make thousands of individual pages; the maintenance would be disastrous. Thanks.

Link to comment
Share on other sites

The whole point of using PHP and a database is to make dynamic sites.  As in, one (or several) HTML templates that can show any number of individual rows of database..err..data.

 

To flesh out what tonyhh said above, your links should look something like: www.mysite.com?id=2234214  You can then use that id (which would be available in $_GET) as a parameter in a SELECT query.  From there, you can plug in the data that's returned into a template.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.