Home › Forums › Quform PHP › INSERT multiple checkbox value to table
- This topic has 6 replies, 2 voices, and was last updated 8 years, 11 months ago by Ally.
- AuthorPosts
- November 14, 2014 at 2:45 am #13038Kelvin LeeParticipant
How can I INSERT multiple checkbox value to table? I use below INSERT statement but value of the column is empty at last.
$Q2 = new Quform_Element('Q2[]','Q2');
$Q2->addValidator('required');
$form->addElement($Q2);$query .= "Q2 = '" . mysql_real_escape_string($form->getValue('Q2')) . "',";
Data type in MySQL for Q2 column is VARCHAR(10)
November 17, 2014 at 1:31 pm #13060AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
November 20, 2014 at 12:47 am #13123Kelvin LeeParticipantDear Ally,
Thanks for your reply. There is no detail description about multiple check update to database from documentation, where shall I know the setting about this?
Best regards,
Kelvin.
November 20, 2014 at 4:55 pm #13137AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
November 21, 2014 at 3:57 pm #13152Kelvin LeeParticipantDear Ally,
Yes agreed with you. Do you mind informing me if any improvement done?
Best regards,
Kelvin.
November 24, 2014 at 3:54 pm #13178AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
December 8, 2015 at 11:24 am #17604AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.