Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MySqlCommand com = new MySqlCommand("select Username,Password from register where username ='" + username.Text + "' and password='" + password.Text + "'", conn);
- int rowsCount = com.ExecuteNonQuery();
- if (rowsCount==1)
- {
- MessageBox.Show("done it bruh");
- }
- else
- {
- MessageBox.Show("slaughter");
- }
- MySqlCommand com = new MySqlCommand(
- "select COUNT(UserName) from register where username ='"
- + username.Text + "' and password='" + password.Text + "'", conn);
- int rowsCount = Convert.ToInt32(com.ExecuteScalar());
Add Comment
Please, Sign In to add comment