PHP If / Else Statement
-
What I’m trying to do is put an advertising script into my header but I want select users to not be subject to the script. The only way I could think of doing this would be using an “If/Else Statement” but I’m very new to php and haven’t gotten it to work.
This is what I have so far…
<?php
if ($user == ‘Admin’) {
echo ”;
} else {
echo ‘<script type=”text/javascript” src=”https://www.thatsprime.com/Webservices/jsParseLinks.aspx?id=05bf2f98″></script>’;
} //end ifAnyone know what is wrong/what I could do to fix this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP If / Else Statement’ is closed to new replies.