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.

-- 
Richard S. Crawford (http://www.mossroot.com)
Editor In Chief, Daikaijuzine (http://www.daikaijuzine.com)
AIM: Buffalo2K / GTalk: [EMAIL PROTECTED]
"We are here to help each other get through this thing, whatever it is."
        (Kurt Vonnegut, 1922 - 2007)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to