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...^^^ Quote Link to comment 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"; } Quote Link to comment 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.