Codice PHP:
<?PHP 

include("../../config.inc.php"); 

$db mysql_connect($db_host$db_user$db_password); 
if (
$db == FALSE
die (
"Errore nella connessione. Verificare i parametri nel file config.inc.php"); 
mysql_select_db($db_name$db
or die (
"Errore nella selezione del database. Verificare i parametri nel file config.inc.php"); 

$result mysql_query("select * from signup order by crediti desc limit 0,40";); 
echo 
"<table width=\"75%\" border=\"1\" class=\"tab\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#8CC6C6\">"
echo 
"<td bgcolor=\"#E6EEFF\">[b]Utente[/b]</td> <td bgcolor=\"#E6EEFF\">[b]Punti raccolti[/b]</td>"
while(
$row mysql_fetch_array($result)){ 
echo 
"<tr ".($count 10 'bgcolor="#FF0000"' '').">"
echo 
"<td width=\"63%\">$row[username]</td><td width=\"37%\">$row[crediti]</td>"
echo 
"</tr>"

echo 
"</table>"

?>
sempre che bgcolor sia l'attributo che indica il colore si sfondo della tr ...

vedi ad bituarsi con dreamweav*r??