kpetsche20 Posted March 16, 2009 Share Posted March 16, 2009 I'm trying to insert multiple checkboxes into mysql with the same name. Anyone know how to do this? Link to comment https://forums.phpfreaks.com/topic/149594-how-do-i-insert-multiple-checkboxes-into-mysql/ Share on other sites More sharing options...
deerly Posted March 16, 2009 Share Posted March 16, 2009 You want to submit the value of multiple checkboxes into one field of your table? I would create a string that contains these values separated by a comma and save that into your table. Then, when you need to retrieve this data you can split the string and get an array of all your checkbox values I hope that helps! Link to comment https://forums.phpfreaks.com/topic/149594-how-do-i-insert-multiple-checkboxes-into-mysql/#findComment-785527 Share on other sites More sharing options...
POG1 Posted March 16, 2009 Share Posted March 16, 2009 Take a look at the SET data type for the field. Here is a really short explanation of it: http://www.mysql.com/news-and-events/newsletter/2003-08/a0000000205.html Link to comment https://forums.phpfreaks.com/topic/149594-how-do-i-insert-multiple-checkboxes-into-mysql/#findComment-785530 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.