View Single Post
Old 2005-12-31, 12:44
JacksonGuitars07 JacksonGuitars07 is offline
Supreme Metalhead
Join Date: Aug 2005
Location: Auburn, New York
Posts: 839
Yes, you can easily load data from seperate .html or .txt files into your page. I'm still learning the MySQL stuff, so I'm not expert at that, but a simple content management system using PHP that I use is the following code. First, put each section of the site in its own html or text file, meaning that news and updates go in one file, band info in another, etc. Then you add the following script into the area where the main content is:

// Get the name of the page that the user wants
$filename = "pages/" . $a . ".html";
// Include it
include $filename;

save your page as page.php: All your links should now be page.php?a= (destination here) where a is the variable.

So all my links are

etc etc. PM me if you want this explained some more.
Currently selling:

Presonus Firepod - $425 shipped
Gator 4 Space Rack Case - $75 shipped
Rackmount Tuner - $75 shipped
Pacific Drum Works 5000 Double Bass Pedal - $175 shipped
Reply With Quote