<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="+2"><i>Greetings to all I have, this function serves to validate if the user and e exist in the database and can log your look with them, but not working please help me omo can do well?<br>
##################################################################<br>
def entrar(self):<br>
usa = self.txa.text()<br>
if len(usa) == 0:<br>
self.txt.setText('Datos vacios')<br>
else:<br>
# self.txt.setText('Valido')<br>
sql = ("SELECT id FROM usuarios WHERE nombre = '%s' AND correo = '%s' LIMIT 1", str(usa))<br>
datos = consultas(sql)<br>
if len(datos) == 0:<br>
self.txt.setText('Datos incorrectos ??')<br>
</i></font>
</body>
</html>