Guest User

Untitled

a guest
Nov 13th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. MySqlCommand com = new MySqlCommand("select Username,Password from register where username ='" + username.Text + "' and password='" + password.Text + "'", conn);
  2. int rowsCount = com.ExecuteNonQuery();
  3.  
  4.  
  5. if (rowsCount==1)
  6. {
  7. MessageBox.Show("done it bruh");
  8. }
  9. else
  10. {
  11. MessageBox.Show("slaughter");
  12. }
  13.  
  14. MySqlCommand com = new MySqlCommand(
  15. "select COUNT(UserName) from register where username ='"
  16. + username.Text + "' and password='" + password.Text + "'", conn);
  17. int rowsCount = Convert.ToInt32(com.ExecuteScalar());
Add Comment
Please, Sign In to add comment