Welcome Guest, Not a member yet? Register   Sign In
ajax jquery duplicate checker error
#2

[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?


Messages In This Thread
ajax jquery duplicate checker error - by El Forum - 08-31-2010, 02:53 AM
ajax jquery duplicate checker error - by El Forum - 09-02-2010, 12:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB