Ciao,
ho scritto questo codice che prende i dati dal data base e li dispone in una tabella:
<?
echo "
<TABLE border=\"1\" width=\"100%\">
<tr>
<td width=\"115%\" colspan=\"10\">
<p align=\"center\">Clienti ComUnico</td>
</tr>
<tr>
<td width=\"10%\">Denominzaione</td>
<td width=\"10%\">Via</td>
<td width=\"10%\">CAP</td>
<td width=\"10%\">Città</td>
<td width=\"10%\">Telefono</td>
<td width=\"10%\">Telefono2</td>
<td width=\"10%\">Responsabile</td>
<td width=\"10%\">Data ins.</td>
<td width=\"10%\">E-mail</td>
<td width=\"10%\">FAX</td>
</tr>
";
while ($valori = mysql_fetch_array ($query)){
$a1 = $valori ["denominazione"];
$a2 = $valori ["via"];
$a3 = $valori ["cap"];
$a4 = $valori ["citta"];
$a5 = $valori ["telefono"];
$a6 = $valori ["telefono2"];
$a7 = $valori ["responsabile"];
$a8 = $valori ["datainserimento"];
$a9 = $valori ["email"];
$a10 = $valori ["fax"];
echo "
<tr>
<td width=\"10%\">$a1</td>
<td width=\"10%\">$a2</td>
<td width=\"10%\">$a3</td>
<td width=\"10%\">$a4</td>
<td width=\"10%\">$a5</td>
<td width=\"10%\">$a6</td>
<td width=\"10%\">$a7</td>
<td width=\"10%\">$a8</td>
<td width=\"10%\">$a9</td>
<td width=\"10%\">$a10</td>
</tr>
";
}
echo "</table>";
mysql_close ();
?>
il problema è che non riesco a cambiare lo sfondo delle celle da quello di default. I tag che uso generano tutti un errore.
Sapete darmi una mano??![]()
grazie