Clancy19 Posted September 30, 2009 Share Posted September 30, 2009 Can you help me with my 'If statement' Please. I've gotten this far and i need help to finish it off. if ($total=="10") { echo "<td><p><font face=arial color=red size=7>Execllent <br></font>"; }else{ If $total DOES NOT = 10, i want it to not do anything. How do i code that? Link to comment https://forums.phpfreaks.com/topic/176058-solved-if-statements/ Share on other sites More sharing options...
marvelade Posted September 30, 2009 Share Posted September 30, 2009 just leave out the else: if ($total=="10") { echo "<td><p><font face=arial color=red size=7>Execllent <br></font>"; } else isn't mandatory. grtz, Marv Link to comment https://forums.phpfreaks.com/topic/176058-solved-if-statements/#findComment-927672 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.