Scalar value as an array?
<p>I am getting the following error:</p>

<blockquote>
  <p>Cannot use a scalar value as an array</p>
</blockquote>

<p>And it's referring to this block of code</p>

<pre><code>$q = $database-&gt;rankingPage($g, $f, $t);
    while($row=mysql_fetch_assoc($q)){
        $u[]=$row['username'];
        $p[]=$row['points'];
        $userid[]=$row['userid'];
    }
</code></pre>

<p>More specifically the line </p>

<pre><code>$u[]=$row['username'];
</code></pre>

<p>I don't understand what the problem is? 
Could someone help me out please.</p>
