So i tried this video tutorial on youtube about payroll login. When i enter the right input it works but when i iinput wrong it have an error..
I copy the exact code like on the YT.
heres the error:
heres the class connection: