Forums

Chronoforms-store data into a database

tzervas 05 Jan, 2017
I've created a form with the following fields : name , lastname, telephone , email , message , code-job

After that, I've created a table in order to store the data of the fields into a table of my database.

When a user click the submit button, all the data of my fields is stored into my database except the field 'code-job' .

What can I do about this?
tzervas 05 Jan, 2017
the input names I want to save should match the table column names exactly?
tzervas 05 Jan, 2017



the input names I want to save should match the table column names exactly?



in my case all of them watch exactly
GreyHead 05 Jan, 2017
Hi tzervas,

Please rename the column and the input code-job to say code_job or codejob. Where there is a dash '-' in the column name MySQL requires the string to be quoted and CF doesn't always do this correctly.

Bob
This topic is locked and no more replies can be posted.