[eluser]Unknown[/eluser]
this query returns num_rows=0, and in my phpadmin, this query returns 1, when password='123' and username='adolf'. any idea?
$query = $this->db->query("select tipo.tipo
from tipo,persona
where tipo.id_tipo=persona.id_tipo
and persona.password='.$password.'
and '.$username.' = persona.rut"
);
echo $query->num_rows;