Jump to content

if and else question


almightyegg

Recommended Posts

LIke this?

if(($query >= 1 && $query <= 100) && ($query2 >= 45 && $query2 <= 85))
{
    // query is between 1 and 100
    // and
    // query 2 is between 45 and 85
}
else
{
    // query is not between 1 and 100
    // and
    // query 2 is not between 45 and 85
}

Link to comment
https://forums.phpfreaks.com/topic/36805-if-and-else-question/#findComment-175590
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.