Please Refer this link
http://mydoubts.in/blog/username-validation-using-codeigniter-check-the-username-in-the-databse-for-validating-a-user/
and do the below steps on the mentioned files
step1:add the below code into the view file uservalidationpage.php
1 2 3 4 5 |
<style TYPE="text/css"> .error{ color: #808000 } </style> |
step2:add the below code in controllers/usernamevalidation.php
$this->form_validation->set_error_delimiters(‘
‘, ‘
‘);