[eluser]debasishdebs[/eluser]
Code:
function get_login_info($username)
{
$this->db->select('password, email, user_id, FK_group_id, active');
$this->db->where('username', $username);
$i = $this->db->get($this->table);
return $var = ($i->num_rows() > 0) ? $i->row() : FALSE;
}
This is my get_login_info() so ofcourse it returns correct thing. $this->table is name of table m accessing. If you say my login is wrong then what should i do? Use some authentication sys? Can you suggest a good one?