Hello, I'm creating a form using PDO SESSIONS authentication. Connection to the database is OK, but when I do the following test of the logar.php file the code always goes to the else "Gave error!"
I am trying to make a simple login with admin admin, in the name and the password .. I would like to understand why it is not working.
Databasetable
LoginForm