Saving multiple values into a select attribute
Permalink
I can't find documentation how to do this. I'm creating pages programmatically from a recordset of data.
I have an array of credit cards (Visa,Amex,MC,Discover) in my source DB and a corresponding Select Attribute (credit_cards) with matching values/options.
Each record contains 1 or more of the possible CC options.
How can I insert these?
I have an array of credit cards (Visa,Amex,MC,Discover) in my source DB and a corresponding Select Attribute (credit_cards) with matching values/options.
Each record contains 1 or more of the possible CC options.
How can I insert these?
This code worked for me