Ok, this is the page I'm working on:
http://www.clan-loh.com/dynasty/weeklyAllStars2005w1.php
It's set up in php such that a php file builds all the outside stuff, the header at the top of the page, the links on the left side, all the colors, etc. The middle part (the weekly all-stars) are an html report generated by some fantasy football software.
I put that in there with a simple include statement for the html file I am given.
What I would like to do is have the links up above that table (Week : 1 2 3 4 etc) change ONLY that middle file. That way I could have ONE php file called say "all-stars.php" that builds the page, and then 17 html files called say "week1.htm", "week2.htm" etc that it can link to.
As it is now I have 17 php files "all-stars-week1.php" etc and 17 html files to go with them.
I'm pretty sure there's a way to be able to just create one php file that has a switch statement or something of the like and chooses the proper html file depending on what value was passed in from the link, but I'm a bit amiss as to how exactly to get each of the links to pass in the values. Looked around some but it's kind of a difficult thing to search for since it's not a distinct keyword. Any quick help?
Thanks in advance!
http://www.clan-loh.com/dynasty/weeklyAllStars2005w1.php
It's set up in php such that a php file builds all the outside stuff, the header at the top of the page, the links on the left side, all the colors, etc. The middle part (the weekly all-stars) are an html report generated by some fantasy football software.
I put that in there with a simple include statement for the html file I am given.
What I would like to do is have the links up above that table (Week : 1 2 3 4 etc) change ONLY that middle file. That way I could have ONE php file called say "all-stars.php" that builds the page, and then 17 html files called say "week1.htm", "week2.htm" etc that it can link to.
As it is now I have 17 php files "all-stars-week1.php" etc and 17 html files to go with them.
I'm pretty sure there's a way to be able to just create one php file that has a switch statement or something of the like and chooses the proper html file depending on what value was passed in from the link, but I'm a bit amiss as to how exactly to get each of the links to pass in the values. Looked around some but it's kind of a difficult thing to search for since it's not a distinct keyword. Any quick help?
Thanks in advance!




