On Tue, 2007-06-05 at 11:04 -0700, Richard S. Crawford 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\">";
> }
>
> ?>
Heheh, it probably already "looks" like that... just isn't actually
that :)
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php