Page 2 of 2

Posted: Wed Feb 04, 2004 11:56 am
by qads

Code: Select all

<?php
if ($navbar == 5)
{
print_r($navbar); 
include("music_navbar_1950s.tpl"); 
}
elseif ($navbar == 6)
{ 
print_r($navbar); 
include("music_navbar_1960s.tpl"); 
} 
?>
:)

Posted: Wed Feb 04, 2004 12:13 pm
by Infinity
you have come to my rescue again qads would i be safe to do it the way I have.
as i cant return your help in code I do collect music so if you want anything let me know and if i have it its yours

Posted: Wed Feb 04, 2004 12:27 pm
by Infinity
ah i seem to have a problem $navbar is returning the correct value but the include statement isnt working

Code: Select all

<?php

include("music_header.tpl"); 

$navbar = (int)$_GET['navbar']; 
if(!isset($_GET['navbar'])) 

if ($navbar == 5) 
{ 
print_r($navbar); 
include("music_navbar_1950s.tpl"); 
} 
elseif ($navbar == 6) 
{ 
print_r($navbar); 
include("music_navbar_1960s.tpl"); 
}
 

?>

Posted: Wed Feb 04, 2004 12:57 pm
by qads

Code: Select all

<?php
include("music_header.tpl"); 
$navbar = (int)$_GET['navbar']; 
if(!isset($_GET['navbar'])) 
{
$navbar = 5;
}
if ($navbar == 5) 
{ 
print($navbar); 
include("music_navbar_1950s.tpl"); 
} 
elseif ($navbar == 6) 
{ 
print($navbar); 
include("music_navbar_1960s.tpl"); 
} 

?>
give this a try.

Posted: Wed Feb 04, 2004 1:13 pm
by Infinity
I wish it was that easy for me thanx qads thats spot on

Posted: Thu Feb 05, 2004 1:22 pm
by Infinity
qads im sorry to be a pain but can you look at this post of mine and see if you know the solution
viewtopic.php?t=17736
thanx