PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
qads
DevNet Resident
Posts: 1199 Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane
Post
by qads » Wed Feb 04, 2004 11:56 am
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");
}
?>
Infinity
Forum Commoner
Posts: 44 Joined: Mon Feb 02, 2004 12:48 pm
Post
by Infinity » Wed Feb 04, 2004 12:13 pm
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
Infinity
Forum Commoner
Posts: 44 Joined: Mon Feb 02, 2004 12:48 pm
Post
by Infinity » Wed Feb 04, 2004 12:27 pm
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");
}
?>
qads
DevNet Resident
Posts: 1199 Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane
Post
by qads » Wed Feb 04, 2004 12:57 pm
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.
Infinity
Forum Commoner
Posts: 44 Joined: Mon Feb 02, 2004 12:48 pm
Post
by Infinity » Wed Feb 04, 2004 1:13 pm
I wish it was that easy for me thanx qads thats spot on
Infinity
Forum Commoner
Posts: 44 Joined: Mon Feb 02, 2004 12:48 pm
Post
by Infinity » Thu Feb 05, 2004 1:22 pm
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