im trying to get data from the database and list them in a <li> list. im trying to find out each third list item and give it a diffrent li class? this is my code
<?php
while ($row = mysql_fetch_array($getupdates)){
?>
<li id="update" class="group">
blah blah blah
</li>
<?php } ?>
so basically for every third item i want to give it a different li class
<li id="update" class="group third">