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:

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:

Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Jan 24, 2022, 7:04 AM
Amit MohantyPosted Jan 24, 2022, 5:25 AM
Ex-
Muhammad Imran AnsariPosted Jan 24, 2022, 5:15 AM
It seems you are passing any empty value ot not according to the table datatype.
Perform the following steps to mitigate your problem:
1. Check your SQL table with datatype.
2. Check your passing wrong input according to table datatype.
I woud recomend implement validation step before hit to SQLor write a storeprocedure and pass your input with command parameters.