robertvideo Posted January 26, 2004 Share Posted January 26, 2004 Hello I've set up tables in a mysql database I have a field called foodtype which is a varchar 12 I want to have 3 choice check boxes that write to the database into the foodtype field cb 1 - itailain cb 2 - greek cb 2 - spanish I though I set it up.. but it's not writing to the DB I can write ALL the other table field but not this one called foodtype what should the set up be and what type of field should it be in MYSQL right now I have it as varchar unless you could suggest otherwise I'm using DW MX 2004 on Mac OSX 10.2.3 thanks in advance Robert PS: if this helps here is a sample I'd seen online Quote Link to comment https://forums.phpfreaks.com/topic/1634-dynamic-check-boxes/ Share on other sites More sharing options...
morpheus.100 Posted February 2, 2004 Share Posted February 2, 2004 If using checkboxes why try to register info into a field "varchar". Using a checkbox wont allow you to enter anything of variable charachter, only a value to asscertain whether or not it is checked. Go to SQLfreaks site using the links and read up on some tutorials about databases. I could sit here and type all day. Quote Link to comment https://forums.phpfreaks.com/topic/1634-dynamic-check-boxes/#findComment-5401 Share on other sites More sharing options...
morpheus.100 Posted February 26, 2004 Share Posted February 26, 2004 Worked it out yet? Set field to enum and use a default ('0','1') Quote Link to comment https://forums.phpfreaks.com/topic/1634-dynamic-check-boxes/#findComment-5543 Share on other sites More sharing options...
Dreamer Posted March 4, 2004 Share Posted March 4, 2004 Yeah, did u sort it out? i'm having a similar problem; how can i pass the details of a radio button to a database; so for e.g i a have a database with a queston and two possible choices 'yes' and 'no', if the user clicks either i want to record teh number of clicks for each choice please jelp Quote Link to comment https://forums.phpfreaks.com/topic/1634-dynamic-check-boxes/#findComment-5594 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.