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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Jan 24, 2022, 12:15 AM EST
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.
Amit MohantyRank #112 · 20K reputationPosted Jan 24, 2022, 12:25 AM EST
Ex-
Sachin SinghRank #66 · 26.2K reputationPosted Jan 24, 2022, 2:04 AM EST