0
Good night.
I believe my problem is simple, but I found nothing to cure it.
I’m doing a CRUD in PHP, using MVC, to learn how the language works. It turns out that the Mysql database works with date in yyy-mm-dd format and the date the user passes is dd/mm/yyyy. So far so good, the problem is that when I get the "data" field in my array, an error is returned saying that the index does not exist. Follow prints with explanation below.
Image 1: HTML form, which contains the "client['data_nasc_client']" field and calls the insert function.
Image 2: Function inserts, where the error is triggered.
Image 3: Error presented to me.
It makes sense, but still the problem persists. Note that the error is "Undefined index".
– Hamilton Martins