title: php fetch column values from database and display in html table column
body: <p>I have a table in database name <code>Accounts</code> in which i have many rows and many columns, i want to show a column <code>Account</code> (all values) in my html table. I have tried many method to show a specific column values without using index in html using <code>php</code> and I am using <code>MySql</code>. </p>
  
  <pre><code>$storeArray = Array();
  while($rowval = mysql_fetch_array($whole, MYSQL_ASSOC))
  { 
  $storeArray[] =  $rowval['Account'];  
  $status= $rowval['status'];
  $ph1= $rowval['Phone1'];
  $ph2= $rowval['Phone2'];
  }
  </code></pre>
  
  <p>by using <code>&lt;?php echo  $storeArray[0]; ?&gt;</code> and <code>&lt;?php echo  $storeArray[1]; ?&gt;</code> in <code>&lt;td&gt;</code> i got the solution. My question is there any way, it automatically show all values without providing any <code>index</code>?</p>