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