Re: need help
| From: | B.C. Lance | Date: | Sun, 11 Aug 2002 13:53:49 +0000 |
| Subject: | Re: need help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112017@lists.php.net to get a copy of this message | ||
to do a comparison between two values / variables, you have to use == instead of =
= is an assignment while == is a comparison operator
if($row['gid'] == 0)
{
$rat = 110;
}
elseif($row['gid'] == 1)
{
$rat = 9.5;
}
else
{
$rat = 6.6;
}