Results 1 to 3 of 3

Thread: PHP Script Help

  1. #1
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default PHP Script Help

    Heres my code:

    Code:
    <?php
    $_CFG['MENU'] = array ('home','about','owners','clubs','deal','history','gallery','contact');
    if (isset($_GET['page']) and $_GET['page']!="") { $page=$_GET['page']; }
    if (!isset($page)) {$page = 'home';};
    if (!isset($subh) || ($subh != 'chrysler' && $subh != 'ford' && $subh != 'gm')) {$subh = 'chrysler';};
    if ($page != 'gallery') { include ("template.inc.php");} else { include ("gallery.php");};
    
    ?>
    The $subh is supposed to switch on click between three pages but for some reason it wont change from "chrysler".

    The address in the addressbar is chanigng but the actual page isnt...

    any ideas?

    Let me know if you need more info.

    Thanks!
    Last edited by Jon101; 06-03-2008 at 09:01 PM.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    where is $subh being assigned/defined? Please show the rest of the code so that we can see what the issue is.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    I'm honestly not sure.. I'm not too efficient with php and am doing this as a favor for a friend.

    its a relatively small site so if you'd like me to zip it up and you can check it out id really appreciate that.

    EDIT:

    If anyone wants to take care of this i will happily pay to get it done... i cant see it taking more than 5 minutes for someone who knows php.
    Last edited by Jon101; 06-04-2008 at 02:04 AM.

Bookmarks

Posting Permissions

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