perchè hai scisso le due cose?
Codice PHP:
<html>
<head>
<meta http-equiv="Content-Language" content="it">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>MARCA</title>
</head>
<body>
<table border="1" width="100%" id="table1">
<tr>
<td>MARCA</td>
<td>MODELLO</td>
<td>PREZZO</td>
<td>ANNO</td>
<td>KW</td>
<td>COLORE</td>
<td>KM</td>
<td>OPTIONALS</td>
</tr>
<?
include("config.inc.php");
include("connect.inc.php");
$query = "SELECT id, marca, modello, prezzo, anno, kw, colore, km, optional FROM usato ORDER BY id ";
$result = mysql_query($query, $db);
$dati = array();
while($row = mysql_fetch_assoc($result))
{
print '<tr>
<td>'.htmlentities($row['marca']).'</td>
<td>'.htmlentities($row['modello']).'</td>
<td>'.htmlentities($row['prezzo']).'</td>
<td>'.htmlentities($row['anno']).'</td>
<td>'.htmlentities($row['kw']).'</td>
<td>'.htmlentities($row['colore']).'</td>
<td>'.htmlentities($row['km']).'</td>
<td>'.htmlentities($row['optional']).'</td>
</tr>';
}
include("tabella.htm");
mysql_close($db);
?>
</table>
</body>
</html>