I've created a series of if/else/endif statements - example below
Code: Select all
<?php if (var="churches") then %><a href="churches.php"><img src="images/churches_on.gif" width="154" height="28" hspace="0" vspace="0" border="0" alt="Churches"></a><% else %><a href="churches.php"><img src="images/churches_off.gif" width="154" height="28" hspace="0" vspace="0" border="0" alt="Churches"></a><% end if
?>Code: Select all
<?php
<? set var="page" value="churches" ?>
?>Parse error: parse error, unexpected T_VAR in /home/content/c/m/s/cmsds/html/kouts/churches.php on line 1
This is my first attempt to do this and I haven't been able to find any tutorials about it as related to .php instead of .shtml files. Any help would be greatly appreciated!
Thanks.