Hello,
I'm trying to use and OR statement in php 5 but it's just not working, what's wrong with this script. It's suppose to fire the error but it doesn't. If I remove the "||"(what I thought was the OR statement) it fires the error.
if($winner=="2" && $fteamscore>$steamscore){
$return['error'] = true;
$return['msg'] = 'Wrong Score, You said you LOST but you are reporting that you WON.';
}
if($winner=="3" && $fteamscore>$steamscore){
$return['error'] = true;
$return['msg'] = 'Wrong Score, You said you WON but your are reporting that your OPPONENT won.';
}
if($fteamscore<$steamscore && $winner=="3" || $winner=="2"){