I am following webinar 2 (these are great thank you!) and I am stuck setting up the database insert for my form. I have followed all of the steps done in the video but I cannot seem to get the database insert to work.
It looks like contactID is ot getting a value. Have a look at Webinar 1 at the 19th minute mark where the database table is created. Notice how contactID gets auto-incremented.
I will of course try and figure this out myself but I canāt figure out whether the issue is something Iāve done in Wappler or something related to my server set up. Iāve tried building the project from scratch a few times including the server setup but I still have this problem.
If it helps, my page is set up as the webinar 2 project is. I have manually added data to my table through phpmyadmin, however only one of the columns will actually display on my page. I cannot seem to add data to the table through the server connect form and the error above occurs when I submit the form.
I should also add that I have a text input for the column āfirst nameā as part of my form that is required in order to submit.
The error says your database is not receiving a value on insert. This could be your insert step is not sending any $_POST value for the column listed in the error, it could also be your input name is different than the $_POST var you are sending in the insert step.
Check the step by step guide explaining how to insert database records:
So it turns out that the problem was with the names of my columns. While they were the same as the text inputs on the form, the problem seems to be that they cannot be more than one word. So for the error above I simply had to change āfirst nameā to āfirstnameā and the problem was solved. I still had to make sure the names matched, so no space in the text input name as well.