I have this table with 50 something fields each field contains the corresponding two character state name. I have this mysql_query when a state is selected
//$entry is state name abbr. Oregon = OR<br/>
//$cname and $zoneName aren't important.
'UPDATE stateCarriers SET '.$entry.'= 1 WHERE cname="'.$cname.'" AND zone="'.$zoneName.'"'
so I'm having an issue when OR
is the $entry
since mysql thinks it is the OR
operator.
How do I solve this issue without changing the field name to something else?