DenisMagic

Поиск учетной записи в бд

Jun 25th, 2021
1,112
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  MySqlCommand command = new MySqlCommand("SELECT name, surname FROM `users` WHERE `login` = @uL AND `pass` = @uP", db.getConnection()); //Сделали запрос к базе данных
  2.             command.Parameters.Add("@uL", MySqlDbType.VarChar).Value = loginUser;
  3.             command.Parameters.Add("@uP", MySqlDbType.VarChar).Value = passUser;  
RAW Paste Data