PHP Change Array Over and Over
<p>I have any array</p>

<pre><code>$num_list = array(42=&gt;'0',44=&gt;'0',46=&gt;'0',48=&gt;'0',50=&gt;'0',52=&gt;'0',54=&gt;'0',56=&gt;'0',58=&gt;'0',60=&gt;'0');
</code></pre>

<p>and I want to change specific values as I go through a loop</p>

<pre><code>    while(list($pq, $oin) = mysql_fetch_row($result2)) {
        $num_list[$oin] = $pq;
    }
</code></pre>

<p>So I want to change like 58 to 403 rather then 0.</p>

<p>However I always end up getting just the last change and non of the earlier ones. So it always ends up being something like
0,0,0,0,0,0,0,0,0,403
rather then
14,19,0,24,603,249,0,0,0,403</p>

<p>How can I do this so it doesn't overwrite it?</p>

<p>Thanks</p>
