it's really hard to be a newbie! 😕 how much more without you guys🙁 !
this is the code right now:
if ($row = mysql_fetch_array($result)) {
// place these outside the loop
$BGcolors = array("#c0c0c0","#9690cc"); // use double quotes and specifiy as array
$colors = count($BGcolors);//# of colors in array.
$rownum = 0; //formerly $row
do {
//use proper indentation
echo "<table border=0 cellpadding=0 cellspacing= style=border-collapse: collapse bordercolor=#111111 width=100% id=AutoNumber1>
<tr>
<td width=50% bgcolor=#E1FFFF align=left width=80% valign=top><font face=Verdana size=2 color=#800000><b><li>{$row['NOMRL']} {$row['CNOMEN']}</b></td>
<td width=50% bgcolor=#E1FFFF align=left width=80% valign=center><font face=Verdana size=2 color=#000000> from {$row['PROVEN']}:</br>
<font face=Verdana size=2 color=#FF0000>{$row['PROFTDAT']}</tr></td></font></li></table>";
} while($row = mysql_fetch_array($result));
} else { print "<font face=Verdana size=2 color=#FF0000><b>There are no temporary professions!</font></b>";
//{ <- this shouldn't be here remove it
//change the iterating variable $row to $rownum since $row is your assoc array in $row = mysql_fetch_array
print "<tr bgcolor=\"" . $BGcolors[$rownum%$colors] . "\">";
$rownum++;
}
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?
echo "<table bgcolor=#FFFEEF border=0 cellpadding=1 cellspacing=0 style=border-collapse: collapse bordercolor=#111111 width=100%>
<td align=left width=70% valign=top><font face=Verdana size=2 color=#FF0000><b>$totalrows</b></font><font face=Verdana size=2 color=#800000> out of </font><b><font face=Verdana size=2 color=#FF0000>$totalrecs</font></b><font face=Verdana size=2 color=#800000> record(s) found !</font></b></td></table>";
?>
it's not giving any errors! but it was as before! no alternating colors!
sigh... sigh