MySQL and C# - Unknow column 'email' in 'field list' -


I have edited my code and for some reason I get this error. Anyway, this is my login code of my form:

  string command = "select e-mail, password from url, where email = @ email"; Try {// COMMAND Details MySqlCommand Email = New MySqlCommand (Order, Connection); // PARAMETERS email Parameter. AddWithValue ("@ Email", txtEmail.Text); // Reader Details MySqlDataReader dr; // check details dr = email.ExecuteReader (); If (! Dr.Read ()) {MessageBox.Show ("Invalid login details."); } String password c = dr.getString (1); String snacks page = security. HashSalt.SaltedHash (txtPassword.Text); Bull Match = Iespassword Match (Password C, Salted Grind); If (match == true) {connection.Close (); String email2 = txtEmail.Text; FrmZilent frm = new frmZilent (email2); Frm.Show (); This.Hide (); } Else {MessageBox.Show ("Invalid login details."); Connection.Close (); }} Hold (MySqlException pre) {messagebox. Show ("MySQL Error - Code AHx004:" + East. Message); Connection.Close (); }  

The connection is already open. any idea?


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -