Answered
multiple select box into db
i have a select box that needs to allow for multple
selections.
<select name="location_id" multiple="yes" size="4">
<CFLOOP QUERY="get_locations">
<OPTION VALUE="#qry_location_id#"<CFIF qry_location_id EQ location_id> SELECTED</CFIF>>#qry_name#</OPTION>
</CFLOOP>
</select>
i need to write each of the selections into separate rows of my sql table tho, and cannot figure out how to do this. loop statements are breaking and normal insert queries are trying to write all the values into one row and breaking as well.
help is GREATLY appreciated!
<select name="location_id" multiple="yes" size="4">
<CFLOOP QUERY="get_locations">
<OPTION VALUE="#qry_location_id#"<CFIF qry_location_id EQ location_id> SELECTED</CFIF>>#qry_name#</OPTION>
</CFLOOP>
</select>
i need to write each of the selections into separate rows of my sql table tho, and cannot figure out how to do this. loop statements are breaking and normal insert queries are trying to write all the values into one row and breaking as well.
help is GREATLY appreciated!
