Guest User

Untitled

a guest
Jan 5th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. string username = txtBoxUsername.Text;
  2. string password = txtBoxPassword.Text;
  3.  
  4. using (SQLiteConnection con = new SQLiteConnection("Data Source=Users.sqlite;Version=3;"))
  5. {
  6. SQLiteCommand cmd = new SQLiteCommand("select * from UserInfo where username like @username and password = @password;");
  7. cmd.Parameters.AddWithValue("@username", username);
  8. cmd.Parameters.AddWithValue("@password", password);
  9. cmd.Connection = con;
  10. con.Open();
  11. }
  12. }
Add Comment
Please, Sign In to add comment