Get a single columns
<pre><code>&lt;?php
include('config.php');
$result=mysql_query('select * from userinfo');
$row = mysql_fetch_row($result);
$count=mysql_num_rows($result);
echo $row[1];
echo $count;
?&gt;
</code></pre>

<p>This displays only the column 1 data. I want to get the whole first column in an array  </p>
