Jump to content

two conditions in if statements..


m00nz00mer

Recommended Posts

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

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.