Parse error: syntax error, unexpected T_ELSE
Posted: Fri Sep 26, 2008 10:53 am
Parse error: syntax error, unexpected T_ELSE in /home/infuze/public_html/templates/jw_inetgazette/index.php on line 55
I want to make a simple if statement say if your on the index page show a .swf file and if your not show the header image but I keep getting the error above...
here is the code.. any help will be much appreciated...
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
<img src="images/header.png" />
</div>
<script type="text/javascript">
var so = new SWFObject("banner2.swf", "index", "929", "96", "8", "#000");
so.write("flashcontent");
</script>;
<? if (url == index.php);
echo "<script language='javascript'>startdisplay();</script>";
else (url == NULL);
echo "<img src=/image/header.png>";
?>
I want to make a simple if statement say if your on the index page show a .swf file and if your not show the header image but I keep getting the error above...
here is the code.. any help will be much appreciated...
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
<img src="images/header.png" />
</div>
<script type="text/javascript">
var so = new SWFObject("banner2.swf", "index", "929", "96", "8", "#000");
so.write("flashcontent");
</script>;
<? if (url == index.php);
echo "<script language='javascript'>startdisplay();</script>";
else (url == NULL);
echo "<img src=/image/header.png>";
?>