<?php if($x=&$_GET["res"] == "16x9"): ?><img src="images/16x9_bg.png" /><?php endif; ?>
/* if else */
<?php if($x=&$_GET["res"] == "16x9"){ ?>
<img src="images/16x9_bg.png" />
<?php }else if ($x=&$_GET["res"] == "stnd"){ ?>
<img src="images/standard_bg.png" />
<?php }else if ($x=&$_GET["res"] == "pal"){ ?>
<img src="images/pal.png" />
<?php }else if ($x=&$_GET["res"] == "wid"){ ?>
<img src="images/bg_widescreen.gif" />
<?php }else{ ?>
<img src="images/16x9_bg.png" />
<?php } ?>
If you have query string res and it has a value 16x9 it will show a specific image. This is part of a large project I put in github. https://github.com/ipodscott/videoplayer
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.