C# to Mysql Login code Error
-
There really is no point in continuing this thread. It does not matter how many times we tell you how to correct your code you insist on ignoring our advice. My previous reply showed you exactly how to do it correctly, and yet you just repeat the same bad code. I suggest you consider a different career path.
Sir, How to write mysql query if stored userid password is correct means then it enter successfull suppose not stored values entered means the messagebox is wrong.....
-
Sir, How to write mysql query if stored userid password is correct means then it enter successfull suppose not stored values entered means the messagebox is wrong.....
-
No, that is not what it means, please read the documentation: SqlCommand.ExecuteNonQuery Method (System.Data.SqlClient) | Microsoft Docs[^]. When you use a SELECT to find a particular user id and the return value says that there is an existing row it means that the details are correct. However since most of your code is in the wrong order it is unlikely that any of your results are correct.
Sir, You all are blaming me always, you know the code but you are not providing me. Thank you all.
-
Why do you ignore everything we tell you? Go back to the code sample I gave you, it shows exactly how to do it correctly. This is my last message on this subject.
Pls correct and send me in my code sir that why i can understand sir send me please
-
Sir, You all are blaming me always, you know the code but you are not providing me. Thank you all.
I am so glad I didn't answer this question last night. You're not trying to think about the problem. You're not trying to read the documentation on the methods you're calling. You're not trying to read the links other people have given you to educate you on what you should be doing. You're not trying to work out what you should be doing, logically, step-by-step. You're not trying to understand anything. What you ARE trying to do, throughout this entire thread, is get other people to write your code for you, and that will teach you nothing.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
I am so glad I didn't answer this question last night. You're not trying to think about the problem. You're not trying to read the documentation on the methods you're calling. You're not trying to read the links other people have given you to educate you on what you should be doing. You're not trying to work out what you should be doing, logically, step-by-step. You're not trying to understand anything. What you ARE trying to do, throughout this entire thread, is get other people to write your code for you, and that will teach you nothing.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave KreskowiakSir, Now you give the right code or not?
-
Sir, Now you give the right code or not?
See, you're STILL trying to get other people to do your work for you. The answer to that very question, from EVERYONE, is going to be NO. The only code you get is the code YOU write.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
See, you're STILL trying to get other people to do your work for you. The answer to that very question, from EVERYONE, is going to be NO. The only code you get is the code YOU write.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave KreskowiakWaste of time in this forum. Bye
-
Waste of time in this forum. Bye
It's a waste of time only because YOU made it that way by begging other people to write your code for you.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
Pls correct and send me in my code sir that why i can understand sir send me please
How many times do you have to be told "nobody is going to do your work for you" before it sinks in?
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak