Welcome Guest, Not a member yet? Register   Sign In
WHY RETURN 0?
#3

[eluser]Unknown[/eluser]
Solution: Just add " " to php variable.

$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();



Messages In This Thread
WHY RETURN 0? - by El Forum - 05-31-2014, 08:58 PM
WHY RETURN 0? - by El Forum - 06-01-2014, 05:36 AM
WHY RETURN 0? - by El Forum - 06-01-2014, 10:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB