Re: Why do these values not match?

From: Date: Tue, 25 Jun 2002 22:19:22 +0000
Subject: Re: Why do these values not match?
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-20109@lists.php.net to get a copy of this message
try switching your != to an == to see if it works the other way around. That might let you know if is the if statement or something else. gl -- Seth Manuel wrote:
The "if" statement is not working here. Does anybody know why? $total= 332.06; $production = 45.11 + 134.38 + 85.35 + 67.22; print("Total = $total<br>"); print("Production = $production<br>"); if($total != $production) {
    print("Totals do not Match!");
} else {
    print("Totals are in Balance");
} --------------------------------- Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup


« previous php.db (#20109) next »