<html>
<meta content="text/html; charset=ISO-8859-1 " http-equiv="content-type">
<body bgcolor="#F0F8FF" text="#0000FF">
<?
mysql_connect($DBhost,$DBuser,$DBpass) or die("Impossibile collegarsi al server");
@mysql_select_db("$DBName") or die("Impossibile connettersi al database $DBName");
$sqlquery = "SELECT * FROM pippo WHERE topolino='xxxxx'";
$result = mysql_query($sqlquery);
echo "<table border=\"1\">\n";
while ($linea= mysql_fetch_array($result, MYSQL_ASSOC)) {
if($linea['colore']=='SI'){
$color = "RED";
}else{
$color="GREEN";
}
echo "\t<tr>\n";
foreach ($linea as $valore_colonna) {
echo "\t\t<td width=\"150\"><b><font face=\"Tahoma\" size=\"2\" color=\"$color\">$valore_colonna</td>\n";
}
echo "\t</tr>\n";
}
echo "</table>\n";
?>