cmd.CommandText = "select username , password from passwords where username='" + textBox1.Text + "' && password='" + textBox2.Text + "'"; object obj = cmd.ExecuteScalar(); if (obj == null) // No such username or password exist label5.Text = "NotValid"; else { label5.Text = "Valid"; }
AND
&&
cmd.CommandText = "select username , password from passwords where username='" + textBox1.Text + "' and password='" + textBox2.Text + "'";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)