techker Posted August 24, 2010 Share Posted August 24, 2010 hey guys i have a car dealer script and i want to make the interface look better.. so i want to put icons(door locks-ac-auto-manu-4 door..) my issue is the if.. so im guessing <? if ( $row3['Door_locks'] == 1 ) { echo "<img src="icons/Doors.png" width="32" height="32" border="0">";} ?> Link to comment https://forums.phpfreaks.com/topic/211632-if-statment/ Share on other sites More sharing options...
Alex Posted August 24, 2010 Share Posted August 24, 2010 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 More sharing options...
techker Posted August 24, 2010 Author Share Posted August 24, 2010 works good now!thx Link to comment https://forums.phpfreaks.com/topic/211632-if-statment/#findComment-1103252 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.