Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Checks()
- {
- string UN = Username_Text.Text;
- string Pass = Password_Text.Text;
- MySqlCommand cmd = new MySqlCommand(MySqlCommandType.SELECT);
- try
- {
- cmd.Select("users").Where("Username", UN);
- MySqlReader r = new MySqlReader(cmd);
- while (r.Read()) // Added Breakpoint and it is executing this
- {
- string RealPassword = r.ReadString("Password");
- string RealUsername = r.ReadString("Username");
- if (RealUsername == UN && RealPassword == Pass)
- {
- MessageBox.Show("YAY!");
- }
- else
- {
- MessageBox.Show("DAMN!");
- }
- }
- return; // Does not read any of the syntax above and returns instantly also no messagebox comes up :(
- }
- catch (Exception Exc) { MessageBox.Show(Exc.ToString()); }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement