I am a student currently learning PHP and SQL.
We are building a PHP form and the input values need to be inserted into a MySQL database. (I am using PhpMyAdmin.)
When I load the page, I just see this error, and my teacher said he is not familiar with how to fix it!
“Database update failed.Incorrect date value: ‘dateOfRelease’ for column ‘ReleaseDate’ at row 1”
The name of the column in my database that I am trying to insert the date into is called ReleaseDate, with a data type of ‘date’.
I am using the html input type ‘date’ in my form. The input field is named ‘dateOfRelease’.
I have uploaded the code I have so far, I hope someone can help. (I realise this code must be all over the place, as I have followed quite a few tutorials on YouTube, and everyone seems to have different ways of making a php form that inserts values into a database!)
This is all very new to me, so please be nice!
Thanks,
Zara
addMovieForm.txt (14.5 KB)