Jump to content

[SOLVED] Using Echo Help Please


jokerfool

Recommended Posts

Currently using this statement:

 

echo "<font size=10 color=green><b>/</b></font>";

 

I want to replace the green / with an image on that line, yet apon doing so I am confronted with an error that says parse, and I am unsure of how to proceed to place an image link, can someone help me please.

 

Thank you.

Link to comment
https://forums.phpfreaks.com/topic/74818-solved-using-echo-help-please/
Share on other sites

sure you need to escape the quotes

ie

echo "<img src=\"theimage.jpg\" width=\"100\" height=\"200\">";

 

you could also do this

echo "<img src='theimage.jpg' width='100' height='200'>";

 

or even

echo '<img src="theimage.jpg" width="100" height="200">';

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.