d3vilr3d Posted October 4, 2007 Share Posted October 4, 2007 Hi, I want to write a simple if...else... statement, basically if value = 0 dont display anything, if its > 0, display the number. heres what I have: if ($count == 0); {echo "";} else {echo "($count) <BR/>\n";} doesnt seem to work tho, what am i doing wrong? Quote Link to comment https://forums.phpfreaks.com/topic/71849-solved-ifelse-help/ Share on other sites More sharing options...
pocobueno1388 Posted October 4, 2007 Share Posted October 4, 2007 if ($count == 0) { echo ""; } else { echo "$count<BR/>\n"; } Quote Link to comment https://forums.phpfreaks.com/topic/71849-solved-ifelse-help/#findComment-361890 Share on other sites More sharing options...
wildteen88 Posted October 4, 2007 Share Posted October 4, 2007 Better to use: if ($count != 0) { echo "($count) <BR/>\n"; } Quote Link to comment https://forums.phpfreaks.com/topic/71849-solved-ifelse-help/#findComment-361892 Share on other sites More sharing options...
d3vilr3d Posted October 4, 2007 Author Share Posted October 4, 2007 cool thanks a lot Quote Link to comment https://forums.phpfreaks.com/topic/71849-solved-ifelse-help/#findComment-361893 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.