Jump to content

if - elseif with MySql statements...


Chris Val Kef

Recommended Posts

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???
Link to comment
https://forums.phpfreaks.com/topic/27012-if-elseif-with-mysql-statements/
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.