how to append multiple values to an associative array?
<p>I have to append more values to the associative array, the values are getting overwritten and I can see only last value displayed.</p>

<p>My snippet is :</p>

<pre><code>$sql= "SELECT  MONTHNAME(dt),SUM(dist) FROM demo GROUP BY MONTHNAME(dt) ";
$result=mysql_query($sql,$con) or die(mysql_error());

while($row = mysql_fetch_array($result))
{

$values=array($row['MONTHNAME(dt)'] =&gt; $row['SUM(dist)']);

}
</code></pre>

<p>I expect other values also to be present the array $values, but it is not happening.</p>
