title: How get all values in a column using PHP?
body: <p>I've been searching for this everywhere, but still can't find a solution: How do I get all the values from a mySQL column and store them in an array?</p>
  
  <p>For eg: 
   Table Name: Customers
   Column names: ID, Name
   # of rows: 5</p>
  
  <p>I want to get an array of all the 5 names in this table. How do I go about doing that? I am using PHP, and I was trying to just:</p>
  
  <pre><code>SELECT names FROM Customers
  </code></pre>
  
  <p>and then use the </p>
  
  <pre><code>mysql_fetch_array
  </code></pre>
  
  <p>PHP function to store those values in an array.</p>