Jump to content

Recommended Posts

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

check_box.jpg

Link to comment
https://forums.phpfreaks.com/topic/1634-dynamic-check-boxes/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/1634-dynamic-check-boxes/#findComment-5401
Share on other sites

  • 4 weeks later...

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

Link to comment
https://forums.phpfreaks.com/topic/1634-dynamic-check-boxes/#findComment-5594
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.