Log in

View Full Version : PHP Script Help



Jon101
06-03-2008, 08:34 PM
Heres my 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!

thetestingsite
06-03-2008, 11:05 PM
where is $subh being assigned/defined? Please show the rest of the code so that we can see what the issue is.

Jon101
06-04-2008, 12:02 AM
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.