m00nz00mer Posted February 20, 2008 Share Posted February 20, 2008 hey i have two variables and i want to check if there is anything in them and if theres somthing in both.. process somthing.. else print somthing else.. if(($num_rows)&&($num_rows_date)>0){ echo "yey"; }else { echo "ney";} can someone tell me the correct syntax for two conditions...^^^ Link to comment https://forums.phpfreaks.com/topic/92061-two-conditions-in-if-statements/ Share on other sites More sharing options...
Rohan Shenoy Posted February 20, 2008 Share Posted February 20, 2008 if($num_rows>0 && $num_rows_date>0) { echo "yey"; } else { echo "ney"; } Link to comment https://forums.phpfreaks.com/topic/92061-two-conditions-in-if-statements/#findComment-471456 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.