Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: php help

  1. #1
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    php help

    PHP Code:
    $file 'nav/video.php';
    if(isset(
    $_GET['idn']))
    {
       
    $idn basename(trim($_GET['idn']));
       if(
    is_readable('nav/' $idn '.php'))
       {
          
    $file 'nav/' $idn '.php';
       }
    }
    include 
    $file

    i linked the video page right it works now on the video.php i have a navigation too and i want that navigation that is on the video page to to wok open with in the layout and i used the same script as in the index.php but not working

    anyone can help

  • #2
    Regular Coder mic2100's Avatar
    Join Date
    Feb 2006
    Location
    Scunthorpe
    Posts
    562
    Thanks
    15
    Thanked 28 Times in 27 Posts
    here try this

    PHP Code:
    $file 'nav/video.php'
    if(isset(
    $_GET['idn'])) 

       
    $idn basename(trim($_GET['idn'])); 
       if(
    is_readable('nav/' $idn)) 
       { 
          
    $file 'nav/' $idn
       } 

    include 
    $file
    u don't need to include the extension on the $idn file


  •  

    Posting Permissions

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