INSERT multiple checkbox value to table

Home Forums Quform PHP INSERT multiple checkbox value to table

This topic is: not resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #13038
    Kelvin Lee
    Participant

    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)

    #13060
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #13123
    Kelvin Lee
    Participant

    Dear 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.

    #13137
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #13152
    Kelvin Lee
    Participant

    Dear Ally,

    Yes agreed with you. Do you mind informing me if any improvement done?

    Best regards,

    Kelvin.

    #13178
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #17604
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy