Re: Output errors
| From: | Bzdpltd at aol dot com | Date: | Tue, 22 Oct 2002 17:37:04 +0000 |
| Subject: | Re: Output errors | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-22589@lists.php.net to get a copy of this message | ||
Thanks for your help, the third one worked, and it also just reminded myself, as I have used that
type of code before.
Thanks for your help and others that help me out. Got it working now, so glad to press on.
Thanks again
Barry Zimmerman
In a message dated Tue, 22 Oct 2002 18:33:58 British Summer Time, Jason Wong
<phplist@gremlins.com.hk> writes:
> On Wednesday 23 October 2002 01:29, Ignatius Reilly wrote:
>
> > $image does not interpolate (surrounded by single quotes)
> >
> > You must write:
> >
> > else { echo '<p><img src="{$image}"
> > width="201"
> > height="160"></p></td>'; }
> >
> > It is good hygiene to brace variables in somehow complicated statements
> > like these. Keeps life easier.
>
> You're still using single-quotes, so it still wouldn't work!
>
> Try any one of these:
>
> echo "<p><img src=\"$image\" width=\"201\"
> height=\"160\"></p></td>";
> echo "<p><img src=\"{$image}\" width=\"201\"
> height=\"160\"></p></td>";
> echo '<p><img src="' . $image . '" width="201"
> height="160"></p></td>';
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
>
> /*
> You will inherit millions of dollars.
> */
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php