Forum Moderators: coopster

Message Too Old, No Replies

Creating multiple pages from one page

Dynamic Pages

         

malcolmcroucher

9:43 am on Aug 16, 2008 (gmt 0)

10+ Year Member



I'm looking to create multiple pages from one page

e.g

http://example.com/change_color.php?color=brown

However I cant seem to find any resource on .

I am able to pull data and insert data but not sure what to do next

Ive looked on a couple of good website , and searched the help any help will do.

Regards

Malcolm

wheelie34

11:30 am on Aug 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Malcom, hope this helps. All links to the TEMPLATE page would have different variables (?color=brown) OR (?color=blue) catch that on the TEMPLATE page using

$color = $_GET['color'];

Then call the data from the db

select * from table where colour = '$color'

so your template is the same but only the variable 'color' changes

HTH