Hi guys
I have a website with product evaluation with positive and negative points in checkbox. The points are the same.
must do the following:
The User selects the positive "durability" however after scoring the User decides "durability" as a negative point. need, when selecting the negative field the positive field is automatically cleared.
How can I do this?
Help with checbox
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Help with checbox
hmm
how can I insert in db several radio buttons in the same column?
how can I insert in db several radio buttons in the same column?
Re: Help with checbox
Why would you want to do that? What are you trying to accomplish?
Re: Help with checbox
need to save the evaluation made by each User for a particular product.
with checkbox I managed to write all correctly marked items, however if you select the same item with positive and negative will record the same way
with checkbox I managed to write all correctly marked items, however if you select the same item with positive and negative will record the same way
Re: Help with checbox
Sounds like you might be better off using a join table (user_id, product_id, rating).
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Help with checbox
How you save it depends on whether/how you need to query the data later.tsalmeida wrote:need to save the evaluation made by each User for a particular product.
with checkbox I managed to write all correctly marked items, however if you select the same item with positive and negative will record the same way
You can save all choices in a single record:
[text]eval_id choices
42 1,2,3,4[/text]
Or each choice as an individual record
[text]id eval_id choices
88 42 1
89 42 2
90 42 3
91 42 4[/text]
(#10850)
Re: Help with checbox
thanks for help