PHP while loop find last row
<pre><code>$sql = mysql_query("SELECT * FROM comments WHERE user = 1");

$i = 1;
while ($row = mysql_fetch_assoc($sql)) {

&lt;p&gt;$i. &lt;?php echo $row['comment'] ?&gt;&lt;/p&gt;

&lt;div class="border"&gt;&lt;/div&gt;

$i++;
}
</code></pre>

<p>How could I do to not output <code>&lt;div class="border"&gt;&lt;/div&gt;</code> under the last comment?</p>
