Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2005
    Posts
    190
    Tokens
    0

    Default Anyone know where I could find a PHP navigation tutorial?

    Anyone know where I could find a PHP navigation tutorial?

  2. #2
    Join Date
    Jun 2006
    Location
    Northamptonshire
    Posts
    1,063
    Tokens
    0

    Latest Awards:


  3. #3
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    The code i personly use is:
    PHP Code:
    //Get the varible P from url
    $p $HTTP_GET_VARS['p'];
    // if p does not exist include start page
    if(!$p){
    include(
    "page_dir/start.php");
    }
    else
    {
    // if p is set we see if the document it contains exists, if so we include it
    if(file_exists("page_dir/$p.php"))
    {
    include(
    "page_dir/$p.php") ;
    }
    else
    {
    // if it doesnt exist we include the start page
    include("page_dir/start.php");
    }

    Comments should exsplain the workings
    Last edited by Mentor; 13-07-2006 at 06:28 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •