Advertisement
Guest User

Untitled

a guest
May 19th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. public bool isValidLogin(string username, string password)
  2.         {
  3.             // Define the Select statement.
  4.             string selectSQL = "SELECT ('select count (*) FROM user WHERE username ='" + username + "' AND password ='" + password + "' LIMIT 1)";
  5.  
  6.             OdbcCommand SQL_Command = new OdbcCommand(SQL_String, m_databaseConnection);
  7.  
  8.             SQL_Command.ExecuteNonQuery();
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement