Chris Val Kef Posted November 12, 2006 Share Posted November 12, 2006 I've this kind of code:if ( (mysql_num_rows ($resCNT0) > 0) && (mysql_num_rows ($resCNT1) > 0) ){ }elseif ( (mysql_num_rows ($resCNT0) == 0) && (mysql_num_rows ($resCNT1) > 0) ){}elseif ( (mysql_num_rows ($resCNT0) > 0) && (mysql_num_rows ($resCNT1) == 0) ){}but it's not working! the problem seems to be with the comparison operators...any help??? Quote Link to comment https://forums.phpfreaks.com/topic/27012-if-elseif-with-mysql-statements/ Share on other sites More sharing options...
fenway Posted November 12, 2006 Share Posted November 12, 2006 Well, first, there's no reason to call that function 6 times... second, what are you trying to check? Quote Link to comment https://forums.phpfreaks.com/topic/27012-if-elseif-with-mysql-statements/#findComment-123586 Share on other sites More sharing options...
Psycho Posted November 13, 2006 Share Posted November 13, 2006 Try some simple debugging. Before any of your if staements use thisecho "resCNT0: " . mysql_num_rows ($resCNT0) . "<br>";echo "resCNT1: " . mysql_num_rows ($resCNT1) . "<br>"; Quote Link to comment https://forums.phpfreaks.com/topic/27012-if-elseif-with-mysql-statements/#findComment-123729 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.