[eluser]Nick_MyShuitings[/eluser]
Quote:function getemail()
{
$this->db->select('Email');
$q = $this->db->post('client');
if ($q->num_rows() > 0)
{
foreach ($q->result_array() as $row)
{
$data[] = $row;
}
$q->free_result();
return $data;
}
}
first off I think your error is $this->db->post which is not a function of active record unless you've extended. Which would mean that $q prolly isn't getting any information and you're prolly not even hitting the return.
It looks like you are wanting to do the following:
Code:
$this->db->select('Email');
$this->db->get_where('client', array('Email' => $email));
That is if I understand that the purpose of this callback is to see if the email already exists in the database?