Jump to content

kabs

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kabs's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have a php website. There is a dynamic page that works like this: www.mywebsite/carpage.php?car_id=1 www.mywebsite/carpage.php?car_id=2 www.mywebsite/carpage.php?car_id=3 ....etc. to car_id=500 The variable (car_id=1, 2, 3, ...500) is passed from the url to the sql query in the page code. Let's say 1= Ford Pickup, 2=Ford Focus, 3=Dodge Durango. What I want to do is create a bunch of pages like this: www.mywebsite/ford_pickup.php www.mywebsite/ford_focus.php www.mywebsite/dodge_durango.php In these pages, I'd like the variable to be hard-coded into the sql query ideally. if I still have to have the vairable in the url, that would be the end of the world, but ideally I can remove all the variable strings from the url. How I can do this now: Open a page in Dreamweaver, edit the code to hard-code the correct car_id in the sql query. Save AS the file as ford_pickup.php. Repeat 500 times. I figure there is something out there to help me with this, but all searches for Auto Generate Webpages and similiar are yielding no-so-good results. Any thoughts on how to get on the right track here much appreciated!!
×
×
  • 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.