Hello, I am trying to figure out how to create a hyperlink with alternating background colors. Can anyone guide me on achieving this?
<div class="left_column">
<div class="category">
<p>Category</p>
</div>
<ul class="side-link">
<?php
$data=mysql_query("select categoryname from category");
while($row=mysql_fetch_array($data))
{
?>
<li><a class="linkbutton" href="#" style="text-decoration:none;"><?php echo $row['categoryname']; ?></a></li>
<?php
}
?>
</ul>
</div>