Re: inserting <img> tag into a script
| From: | Shane McBride | Date: | Wed, 06 Dec 2000 16:50:28 +0000 |
| Subject: | Re: inserting <img> tag into a script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28934@lists.php.net to get a copy of this message | ||
Brian,
I always use echo like this:
echo "<img src=\"../graphics/logo.jpg\">";
I never use the print command, but my first guess is the ( ) do not need to
be there, and you need to escape the quotes with a backslash like \".
Hope this helps...
Shane
----- Original Message -----
From: "BrianSander" <yoda@ipo.vpaa.asu.edu>
To: <php-general@lists.php.net>
Sent: Wednesday, December 06, 2000 11:36 AM
Subject: [PHP] inserting <img> tag into a script
> Greetings,
>
> Got a slight html tag problem with a php4 script. I've written a function
> which forms a generic page for my web page. What I attempted to do was
> insert an image into the page. The problem line is:
>
> print("<img src="../graphics/logo.jpg">");
>
> The above line is slightly abbreviated but that line produces an error
> when the script is executed. It works fine if it's not in a php script.
> I've done a quick search of the help files on php.net and was unable to
> find anything.
>
> How do you place the <img> tag into a php script?
>
> Thanks.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>