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;
  }


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to