Pastor Steve wrote:
> 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.
get a real text editor before you go mad.
textpad or ultraedit or something like that - check the list archives,
there are plenty of threads related to 'whats the best editor'
> You are probably seeing the quotes that Entourage (my email
> application) is giving you.)
setup your email client to use plaintext or get another one.
it will save lots of headache if you intend to make use of mailinglists
like this one.
>
> <?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 ([EMAIL PROTECTED]) 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.
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php