zoobie
07-31-2008, 07:29 AM
I echo different pages according to login status.
I'm trying to echo an include ("inc/header.php") which displays the image of the month via a switch inside header.php
Instead, the echo just shows the text (below) instead of the image
include ("inc/header.php");
Inside inc/header.php is
<?php
switch(date('n')) {
case 1: echo '<img src="img/header/red.gif">'; break;
case 2: echo '<img src="img/header/purp.gif">'; break;
case 3: echo '<img src="img/header/green.gif">'; break;
case 4: echo '<img src="img/header/blue.gif">'; break;
etc...
}
?>
It looks like it's trying to echo an echo...which isn't working
I've also used the full path in the echo...no go
I think I need serious help...:eek:
Thanks
I'm trying to echo an include ("inc/header.php") which displays the image of the month via a switch inside header.php
Instead, the echo just shows the text (below) instead of the image
include ("inc/header.php");
Inside inc/header.php is
<?php
switch(date('n')) {
case 1: echo '<img src="img/header/red.gif">'; break;
case 2: echo '<img src="img/header/purp.gif">'; break;
case 3: echo '<img src="img/header/green.gif">'; break;
case 4: echo '<img src="img/header/blue.gif">'; break;
etc...
}
?>
It looks like it's trying to echo an echo...which isn't working
I've also used the full path in the echo...no go
I think I need serious help...:eek:
Thanks