I'm trying to get an if
statement to test a php session and if it's true, show html and if it's not, don't show html. I did some research and found this
<?
$a = 2;
if ($a == 2): ?>
<p>Content</p>
<? elseif ($a == 3): ?>
<p>Other Content</p>
<? else: ?>
<p>Default Content</p>
<? endif; ?>
but when i run it, every condition seems to be met as it outputs everything, does anyone know why? thanks