Jump to content

Html in PhP


shadrxninga

Recommended Posts

echo "<img src="logo.gif" alt="Angry face" width="32" height="32" />";

 

This is giving an error like this

 

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/scswc188/public_html/admin.php on line 21

 

I think it is because of the "" in the html but I don't know how do fix it.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/231460-html-in-php/
Share on other sites

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.