$status=mysql_result($result,$i,"status");
The above code fetches/selects the data from the database. The code below displays it on a webpage:
<td valign=\"top\" width=\"10%\">$status</td>
Now, if for example I have 3 items stored in the database:
Item 1 Item 2 Item 3 item 4
I want item 1 and item 3 to have a white background color, and item 2 and 4 a black background color. Would I be able to do this and if so, could you help me on my way?
Many thanks in advance!
~Squiddy
