• Thank you so much for this method! I'm a brand new PHP/SQL programmer--just learning the ropes--and have spent the last 3 days trying to figure out how to store and query user inputs from checkboxes in a form using PHP and a MySQL database. Storing the users' selections as text strings, or even as separate integers (0,1,2,3,4, etc.), proved extremely difficult and frustrating to query.

    Though the comments made previously in this discussion seem valid, being able to store multiple user inputs as a single integer in the SQL DB makes life so much easier. I solved my problem of 3 days in about 10 minutes after reading your post.

    Many thanks again, and keep up the helpful comments--I could use them! (Though I realize this post is many years old, just thought I'd provide the feedback.)

    Robert Jellinek

    jellinek _AT_ fas _DOT_ harvard _DOT_ edu