[[Fixed]] Was accessing the file directly in my browser, instead of through the localhost web server
--
I'm fairly new to PHP and trying to get the following to work.
This code is in the middle of a HTML page.
I've initialized and set the variable right above the if statement
I'm checking if the variable is '1', when I've set it to '3'.
My problem is, that it is still running the html code in the IF statement when it shouldn't be
Any idea's?
Thanks in advance
<?php
$ad='3';
if($ad=='1')
{?>
<p>Broken</p>
<?php
}
?>