Php – How to use form Validation in CodeIgniter

## MAKE REQUIRED AND UNIQUE IN CODEIGNITER   // ONLY REQUIRED FIELDS $this->form_validation->set_rules(‘answer4’, ‘Answer Four’, ‘required’);  // ONLY REQUIRED WITH DATABASE UNIQUE VALUE $this->form_validation->set_rules(‘title’, ‘Question Title’, ‘required|is_unique[categories.cat_name]’);