Omit form field from database INSERT
- Bill Lions
- Member | 47
I have a form which submits some user registration details.
username/password and, a passwordVerify field.
The database, of course, has no passwordVerify field, and so I get
this error.
How do I omit the passwordVerify field from the INSERT?
- manwe
- Member | 44
How do you insert the data?
You most definitely should not do something like
As it begs for some problems to be made.
Create array that only contain values you actually want to insert to database.
like
(im not sure im getting the Nette\Database syntax right as Im not using it, but you get the gist)
Last edited by manwe (2019-03-20 11:07)