Hey. Im wondering how I would style the bottom row in a while loop. Can someone please help. How do I find the highest count and then if statement on my posts div.
<?php
$query="select * from posts order by id desc";
$result = mysql_query($query);
$i = 0;
while($row=mysql_fetch_array($result))
{
$i++;
$id=$row['id'];
$name=$row['name'];
$post=$row['post']; ?>
<div class="posts">
<div class="numbered">#<?php echo $i; ?></div>
<div class="postername"><?php echo $name ?></div>
<div class="post"><?php echo $post; ?></div></div>
<?php } ?>
Thanks