I am wondering how I should deal with a 0 - 0 tie in my athletic scores program. I was using
$win = 0;
$lose = 0;
$tie = 0;
while($row = mysql_fetch_array($Resultd)){
if ($row['Our_Score'] > $row['Op_Score'] )
{
$win++;
}
if ($row['Our_Score'] < $row['Op_Score'] )
{
$lose++;
}
if ($row['Our_Score'] == $row['Op_Score'] )
{
$tie++;
}
But what happens is that scores that are not put in will show up as ties. So I can remove entries that are 0-0 but some sports actually have 0-0 ties. So I am kinda confused on the best way to code this. I was thinking of adding a check box for 0-0 ties.
Anybody have some ideas on this?
Thanks
tom