Results 1 to 2 of 2
  1. #1

    Question PHP - Including Images (NEWBIE!!)

    I am developing a new design which will be including some PHP. I have a variable:

    $img = ("<img src="image.gif"><br>Text/Caption Goes Here");

    I want to print this like:

    print ("$img");

    but it comes out with a parse error??

    What can I do to fix it? Can PHP print html?


  2. #2
    try this:

    $img = "<img src=\"image.gif\"><br>Text/Caption Goes Here";

    print $img;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts