title: how to print the value of table along with their field name
body: <p>this is my table:</p>
  
  <pre><code>student_name  father_name  sub1  sub2
  
    kunwar        Siyaram    20     40
  </code></pre>
  
  <p>I want to print the value of table along with their field name as:</p>
  
  <pre><code>Student_name : kunwar
  father_name : Siyaram
  sub1  : 20
  sub2  : 40
  </code></pre>
  
  <p><strong>Query</strong></p>
  
  <pre><code>$select = mysql_query("select * from 2mcom where father_name='Siyaram'");
  </code></pre>