PHP IF help?
-
Hi Guys, I’m a newbie to PHP and keep getting hung up on one thing…
I’m trying say IF URL=www.url.com, then show XYZ.img. Meaning on certain pages, I want to show certain images.
This is what I have so far. I’m able to get the image to appear where I want, but it shows up on everypage, not the designated page:
<?php
$url=”https://www.url.com/123″;
if($url==’https://www.url.com/123′):?>
{echo <div id=”feature”>
<img src=”https://www.image.jpg” >
</div>
}
<?php endif; ?>Any ideas to make it work?
Thanks in advance!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘PHP IF help?’ is closed to new replies.