can some one tell me like a good tutorial for like instead of making a bunch of new pages , i can do something like www.blah.com/index.php?page=pagename. Like all different pages in one page..
thanks
You could do like this:
<?php if(isset($page)) { if($page == "downloads") { include("downloads.inc"); } else if($page == "contact") { include("mail.inc"); } else if(empty($page)) { include("start.inc"); } else { include("start.inc"); } ?>
in this case id advise not to use if else statement, use the switch statement.
1) it looks nicer,
2) when i used an if else you can get problems...
would i need a database..and if so could you help me with that to?
thanks i got it to work
you dont need a database for this