[eluser]Unknown[/eluser]
i tried to use a callback function i was suppose to get a match of password from the database if exists and suppose to get a error message if it doesn't but i am getting the mentioned error when i am using the where clause . i am giving you the function code below
function password_check() {
$temp=$this->_username;
$this->db->where('username', $this->_username);
$query = $this->db->get('users');
$result = $query->row_array();
if($result['password'] == $this->_password)
{
return TRUE;
}
if($query->num_rows() == 0) {
$this->form_validation-> set_message('password_check', 'There was an error!');
return FALSE;
}
}//Password Check