Jump to content

if statment


techker

Recommended Posts

You have to either escape the double quotes in the string you're trying to echo, or use single quotes with the echo instead. The latter is easier:

 

echo '<img src="icons/Doors.png" width="32" height="32" border="0">';

 

I also suggest that you don't use short tags because it will just cause you headaches in the future.

Link to comment
https://forums.phpfreaks.com/topic/211632-if-statment/#findComment-1103248
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.