php - Using CodeIgniter, how to find out if a record already exists in a database? -


i have check whether email id , phone not updated in database or not.

can please me find solution this?

as simple

$this->form_validation->set_rules('username', 'username', 'required|min_length[5]|max_length[12]|is_unique[table name.field name]');


Comments