I have set my data that has been called from the database into separate divs. Is there a way to make each row be a different color so they can be set apart and easier to see which one you'd like to purchase for the market? I've been searching for a bit now, but I can only change the background of like the "name" and the others don't change with it. I need the entire row to be a different color, but not figuring it out. Any help would be great. This is my code:
Code: Select all
<?php
while ($row = mysql_fetch_assoc($rs_result)) {
?>
<form action="market.php" method="post">
<div>
<div align="left" class="left"><?php echo $row["name"]; ?></div>
<div align="center" class="center"><?php echo $row["amount"]; ?></div>
<div align="center" class="right"><?php echo $row["price"]; ?></div>
<input type="hidden" id="hidden" name="hidden" value="<?php echo $row["mid"]; ?>">
<div><?php echo "<A href='market.php?mid=$row[mid]'?><font color='red'>Purchase" ?>;</a></font></div>
</div>
</form>