[eluser]Zed[/eluser]
[quote author="zoopstud" date="1334147134"][quote author="Zed" date="1334146380"]
even with the other parameter still the same problem
thanks though[/quote]
What parameter?
Code:
$this->db->select('email');
$this->db->from('reg_users');
$this->db->where('email', $email); //$email = $this->input->post('femail') or what ever your email form input is called.
$query = $this->db->get();
if ($query->num_rows() > 0) {
echo 'duplicate entry';
} else {
$this->db->insert('reg_users', $data);
}
[/quote]
Still not working. I wonder why?