Jump to content

pandacrusader

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Posts posted by pandacrusader

  1. Alright, I've done this before, and it's taking a lot for me to remember exactly how it was done. In a perfect world, one would go to the index.php page consisting of:

    [code]<?PHP

    include ('top.php');

    if (!$page)
    {
        $page = "news";
    }

    include ($page . ".php");

    include ('bot.php');

    ?>[/code]

    And be automatically shown the top third, the content in the middle, and the closing third. The links to other content then look something like this:

    [code]<li><a href="index.php?page=news">News</a></li>[/code]

    However, the result of this script is an include error that's now creating too busy of a server for me (my host must love me =) ).

    Any ideas why it can't find the correct file to include? I'm sure it's just a simple matter of syntax, it's been many a moon since I last coded. Thanks much in advance, PHPFreaks has always been timely and decisive!

    - Icbat

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.