Hi All,
Am pretty newbie to php and am battling with a piece of code and just dont know what I am doing wrong.
I have a set of tabs along the top of my page with differnet user levels. If a user is an admin then they get to see different tabs.
I have this one tab as an example which allows an admin to send a newsletter and am attempting to make the tab visible.
<?php
if($staff['isadmin'] == "1"){
echo
"<td width=\"104\" class="; if(!isset($_GET['section']) || $_GET['section'] == "newsletter") echo "tabactive"; else echo "tabinactive"; ">"; echo"<div align=\"center\"><a href=\"index.php?section=newsletter\" class="; if ($_GET['section'] == "newsletter") echo "tabactive"; else echo "tabinactive"; ">"; echo"Newsletter</a></div></td>";
}
?>
What I am seeing is a blank tab where the word NEWSLETTER should appear. Have tried various permutations but have to say I am getting nowhere.. is there someone that can point me right here??