mysql_fetch_array() expects parameter 1?
<p>First i get this warning. </p>

<pre><code>$dnn = mysql_fetch_array(mysql_query('select username,password,email,avatar from users where  username="'.$_SESSION['username'].'"'));
</code></pre>

<p>Second </p>

<pre><code> $nb_new_pm = mysql_fetch_array(mysql_query('select count(*) as nb_new_pm from pm where ((user1="'.$_SESSION['userid'].'" and user1read="no") or (user2="'.$_SESSION['userid'].'" and user2read="no")) and id2="1"'));
</code></pre>
