when can a validation rule be used to prevent invalid data in codeigniter code example
Example: codeigniter form_validation email
$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');
$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');