Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. connection.Open(); //(- connection works)
  2. OleDbCommand command = new OleDbCommand();
  3. command.Connection = connection;
  4. command.CommandText = "INSERT INTO users(usr,pwd) VALUES('" + user.Text +
  5. "','" + pd.Text + "'" + ");";
  6. MessageBox.Show(command.CommandText);
  7. command.ExecuteReader();
  8. MessageBox.Show("DATA SAVED");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement