php more than 5 items create new div
<p>I am using PHP and MYSQL.
here is my code</p>

<pre><code> &lt;?php 

    $result = mysql_query("SELECT * FROM `item` order by `ID` limit 0, 5");
    $rows = mysql_num_rows ($result); 
    $item = 0 ; 

     while ($item &lt; $rows){

        $title = mysql_result($result,$list,"name");
        $id = mysql_result($result,$list,"ID");
        echo "&lt;div id="new"&gt; $id . $title  &lt;/div&gt; ";

     $item++;
    }
     ?&gt;   
</code></pre>

<p>My question is that, is it possible if the items are more than 5 (as you can see I limited items), then create a new div id=new to display the rest items?</p>

<p>many thanks in advance</p>
