This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 9th, 2012  |  syntax: PHP  |  size: 0.29 KB  |  views: 41  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3.         if(is_page('About'))
  4.         {
  5.                 <img src="image1.jpg">
  6.         }
  7.         elseif(is_page('Music'))
  8.         {
  9.                 <img src="image2.jpg">
  10.         }
  11.         elseif(is_page('Gigs'))
  12.         {
  13.                 <img src="image3.jpg">
  14.         }
  15.         elseif(is_page('Contact'))
  16.         {
  17.                 <img src="image4.jpg">
  18.         }
  19.         else
  20.         {
  21.                 <img src="image5.jpg">
  22.         }
  23.  
  24.         ?>
clone this paste RAW Paste Data