Multiple Database values in an php array
<p>Suppose you have this:</p>

<pre><code>while ($record = mysql_fetch_assoc($dbquery)) {
    $arr[] = $record['$columnvalue1'];
}
$arraycount = count($arr);
</code></pre>

<p>and you want multiple columns in the array how is this done?</p>

<pre><code>while ($record = mysql_fetch_assoc($dbquery)) {
    $arr[] = array($record['$columnvalue1'],$record['$columnvalue2']);
}
$arraycount = count($arr);
</code></pre>

<p>the above code errors:</p>

<pre><code>Warning: array_count_values(): Can only count STRING and INTEGER values! 
</code></pre>
