how can i change this script in order for the results to be numbered in rows and for every other row to have a color in it like the message board here does ??????
<?
printf (" <table border=\"1\" width=\"567\">
<tr>
<td width=\"300\"><b>Scholarship/Fund</b> </td>
<td width=\"92\"><b>Value</b></td>
<td width=\"175\"><b>Deadline</b></td>
</tr>\n");
?>
<?
$db = pg_connect("","","","","funds");
$query = "SELECT schol_id, schol_name, value, deadline FROM scholarship ORDER BY schol_name";
$result = pg_exec($db, $query);
if (!$result) {print ("ERROR"); exit;}
$numrows = pg_numrows($result);
$row=0;
do
{
$myrow = pg_fetch_row ($result,$row);
print ("<tr><td width=\"400\" valign=\"top\"><b><a href=\"scholview.php?schol_id=".$myrow[0]."\">$myrow[1]</a></b></td><td width=\"92\" valign=\"top\">$myrow[2]</td ><td width=\"75\" valign=\"top\">$myrow[3]</td ></tr>\n");
$row++;
}
while ($row < $numrows);
print ("</table><br>\n");
pg_close($db);
?>