[eluser]rvillalon[/eluser]
Hi everyone,
I'm creating a custom library in the applications/library folder and when I try to use the database, it gives me this error:
Fatal error: Call to a member function where() on a non-object in /public_html/stage/system/application/libraries/User.php on line 181
Code:
$this->db->where($this->tblUser, $user);
$this->db->where($this->tblUserPass, $pass);
$this->db->limit(1,0);
$query = $this->db->get($this->tbl);
if ($query->num_rows() > 0)
{
}