Create a stored procedure in the MySQL database (if you have a version which supports procedures) which has input parameters for the username and password. Pass it the username and password and within the procedure have it check a table and see if the username and password exist in a single row. Something like this.
<pre>CREATE PROCEDURE MyProcedure
WHERE UserName = @UserName
and Password = @Password
Then if there is no record it’s not a valid account. If there is a record it is a valid account.
This <a href=”http://www.c-sharpcorner.com/UploadFile/dclark/InsOutsinCS11302005072332AM/InsOutsinCS.aspx”>page </a>has come good info about using stored procedures.