title: How to get field names of mysql table in codeigniter?
body: <p>i am new in codeigniter. And i am trying to get field name of a table with a query.</p>
  
  <p>I have write a query </p>
  
  <blockquote>
    <p>"select * from user"</p>
  </blockquote>
  
  <p>and pass it to <code>$this-&gt;db-&gt;query()</code> function. i am getting records. But i want to get field names of table. so how can i get that?</p>
  
  <p>Can anybody help me please. Thanks in advance.</p>