I have a multiple select drop down box that produces me an array like this:
array(3) { [0]=> string(1) "1" [1]=> string(1) "6" [2]=> string(1) "7" }
What I cannot work out is how to get the multiple select drop down box to insert update and select from or into the database. I seem to only be getting one value
My current code situation is this -> And what the above var_dump is of:
SELECT * FROM {table} WHERE canid=? AND categoryid=?", array($emailCheck['id'], $fields['Occupation'][0]));
Update Statement: How could I implode this?
UPDATE {table} SET canid=?, categoryid=? WHERE canid=? AND categoryid=?", array($emailCheck['id'], implode(',', $fields['Occupation']));
My DB Structure is:
