public string Usuario
{
get { return usuario; }
set { usuario = value; }
}
public string Clave
{
get { return clave; }
set { clave = value; }
}
public string Tipo
{
get { return tipo; }
set { tipo = value; }
}
MySqlCommand comando = new MySqlCommand("SELECT * FROM lgn WHERE CARGO='" + tipo + "'and USUARIO='" + usuario + "'and PASS='" + clave, CONEXION.ObtenerConexion());
The error that appears to me is the following:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''6Ol/iZcnHemlteHtFuoxsA==' at line 1