Thank you. I tried what you suggested below and it gave me an unexpected T_CONSTANT_ESCAPED_STRING error. Would this be valid: (I am typing in my Entourage, but I am writing the code in Dreamweaver. You are probably seeing the quotes that Entourage (my email application) is giving you.) <?php > > $image = ""; > if ($image == NULL) { > print "False"; > } else { > > ?> > <img src="$var"> > <? > > } > ?> It works if $image is not NULL. However, if it is empty, then it gives me an error. I am very much so a novice and appreciate your patience. Thanks, Steve Marquez on 6/5/07 1:04 PM Richard S. Crawford (rscrawford@xxxxxxxxxxxx) wrote: > On Tuesday 05 June 2007 10:50:15 Steve Marquez wrote: >> > It seems that if I add a string, rather than just the variable, then does >> > not work. I am getting an unexpected T_IS_EQUAL error. > > Your string delimiters are very strange; I'm not sure if your code has those > in it or not, so I can't really diagnose your problem. > > At any rate, make sure your code looks like this: > > <?php > > $image = ""; > if ($image == NULL) { > print "False"; > } else { > print "<img src=\"$var\">"; > } > > ?> > > If that still gives you problems, you could try replacing the second print > statement with this: > > print "<img src=\"".$var."\">"; > > just to see if the problem is with the string or is some strange interpolation > issue.