View Single Post
  #11  
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:

<?php
// 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

page.php?a=news"
page.php?a=theband"
page.php?a=contact"
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