PHP: show two times
<p>I have a table called users_msgs with these columns:</p>

<pre><code>id | uID | nData
</code></pre>

<p>and it has these rows:</p>

<pre><code>1 | 2 | 20
2 | 2 | 20
3 | 2 | 20
4 | 2 | 20
5 | 2 | 25
6 | 2 | 25
7 | 2 | 25
8 | 2 | 25
</code></pre>

<p>uID is userid. So user 2 has written in a nDataid 20 four times, the same he did in nDataid 25.</p>

<p>I want to make so you only get one popup per same nData. So by these rows i would get 2 popups.</p>

<p>Right now i get only 1 popup for everything, and not per same nData. But that may be the way I SELECT:</p>

<pre><code>&lt;?php
$string = mysql_query("SELECT * FROM users_msgs 
            WHERE uID = '$USER' 
                AND type = 'wallComment'
            ")or die(mysql_error());
$get = mysql_fetch_array($string);
$sWall = mysql_num_rows($string);
    if($sWall&gt;1){
?&gt;
&lt;script language="javascript" type="text/javascript"&gt;
$(document).ready(function(){
        jGrowlTheme('wallPop', 'mono', 'Wall', 'You have &lt;?php echo $sWall; ?&gt; answers in id &lt;?php echo $get["nData"]; ?&gt;', 'images/wall.png', 10000);
        });
    &lt;/script&gt;
&lt;?php
}elseif($sWall==1){ 
?&gt;
&lt;script language="javascript" type="text/javascript"&gt;
$(document).ready(function(){
        jGrowlTheme('wallPop', 'mono', 'Wall', 'You have one new answer in id &lt;?php echo $c; ?&gt;', 'images/wall.png', 10000);
        });
    &lt;/script&gt;
&lt;?php } ?&gt;
</code></pre>

<p>How can I solve this, so there comes two popups with "You have xx answers in id nData" when you have the rows as above?</p>
