Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string username = txtBoxUsername.Text;
- string password = txtBoxPassword.Text;
- using (SQLiteConnection con = new SQLiteConnection("Data Source=Users.sqlite;Version=3;"))
- {
- SQLiteCommand cmd = new SQLiteCommand("select * from UserInfo where username like @username and password = @password;");
- cmd.Parameters.AddWithValue("@username", username);
- cmd.Parameters.AddWithValue("@password", password);
- cmd.Connection = con;
- con.Open();
- }
- }
Add Comment
Please, Sign In to add comment