Link to home
Start Free TrialLog in
Avatar of tonelm54
tonelm54

asked on

Stupid if statment

Ok this is a really stupid question, but I cant remember it

I need to know the syntax for IF OR statments

I thought it was:-
<?php
if ((1 == 1) || (2 ==2))
{
echo "1 = 1 or 2 = 2";
}
?>

I also thought that the and would be:-
<?php
if ((1 == 1) && (2 ==2))
{
echo "1 = 1 and 2 = 2";
}
?>
SOLUTION
Avatar of gamebits
gamebits
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tonelm54
tonelm54

ASKER

Sorry, the problems were due to PHP not been installed correctly, and me trying to figure if statments out that I havnt done for ages.

Sorry, again, but thanks, I think its fair to distrubute the points equally between everyone who contributed.

Thanks again, to everyone