title: how to set error message for each field in codeigniter php
body: <p>i want to set different error message for each field in the form.This is my controller..</p>
  
  <pre><code>$this-&gt;form_validation-&gt;set_rules('fname', 'First Name','required');
  $this-&gt;form_validation-&gt;set_message('required', 'कृपया प्रथम नाव भरा','fname'); 
  $this-&gt;form_validation-&gt;set_rules('address', 'Address','required');
  $this-&gt;form_validation-&gt;set_message('required', 'कृपया पत्ता भरा','address');
  </code></pre>
  
  <p>but problem is that if validation fails it print only error message for last field.</p>