almightyegg Posted February 2, 2007 Share Posted February 2, 2007 is it possible to do if($query is between 1 and 100 && $query2 is between 45 and 85){}else{}? If so how? Link to comment https://forums.phpfreaks.com/topic/36805-if-and-else-question/ Share on other sites More sharing options...
wildteen88 Posted February 2, 2007 Share Posted February 2, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.