How do you link an image in php?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kak_azn
    So Fucking Banned
    • May 2004
    • 3055

    #1

    How do you link an image in php?

    ???????
  • dominous138
    Registered User
    • Jun 2004
    • 3

    #2
    <img src='http://www.yourdomain.com/yourimage.jpg'>

    directly to the image:

    <a href='http://www.yourdomain.com/yourimage.jpg'>i am an idiot</a>

    This Store Sucks

    Comment

    • Amon-Ra
      Registered User
      • Oct 2003
      • 9

      #3
      or add slashes when you are IN php mode

      <?

      echo "<a href=\"idiot-big.jpg\"><img src=\"idiot-small.jpg\"></a>";

      ?>

      Comment

      Working...