if ($row5["team1_score"] > $row5["team2_score"])
or should that be different?
we dont know
whats right and whats wrong?
what are you trying to do?
Yeah, you've definitely got to be more detailed..
If $row5 is an array containing 'team1_score' and 'team2_score', and you want to check if 'team1_score' is greater, then yes it is right.
Originally posted by douceur Yeah, you've definitely got to be more detailed.. If $row5 is an array containing 'team1_score' and 'team2_score', and you want to check if 'team1_score' is greater, then yes it is right.
yeah that's what i'm wanting to do now look at this
if ($row5["team1_score"] == 0 and $row5["team2_score"] == 0)
is this right?
Yeah, I think that should work right. Just to be on the safe side with more complex ifs (even though this certainly isn't one), I always enclose my comparisons in parentheses..
if (($row5["team1_score"] == 0) && ($row5["team2_score"] == 0)) { //... }