I have a ENUM column in db like so, ENUM(‘us’,’uk’,’fr’,’intl’)
I’m using checkboxes to confirm the country in HTML and the PHP is
SET country ='".$country_us." ".$country_uk." ".$country_fr." ".$country_intl."'
The query passes but it does not add to the column.
If I do just
country ='$country_us'
— it works fine.
Here’s a previous question of mine for more info. Thanks for your help!
An ENUM can only be one value at a time. If you want to allow multiple values at a time, use SET.