ecco il codice:
codice:
<html>
<head><title></title></head>
<body>
<form id="nome" method="post" action="<?=$_SERVER['PHP_SELF']?>?id=1">
Nome:<input type="text" name="nome" size="30" />
Citta:<input type="text" name="citta" size="30" />
Eta:<input type="text" name="eta" size="5" />
<input type="submit" value="OK" />
<?php
$sql = "SELECT * FROM nomi ORDER BY Nome DESC";
$conn = mysql_connect("localhost", "fcr", "");
$db = mysql_select_db("my_fcr");
$result = mysql_query($sql);
if (mysql_num_rows($result)) {
?><table border="0" width="100%"><tr><td>Nome</td><td>Citta</td><td>Eta</td></tr> <?
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "<tr><td>".$row['Nome']."</td><td>".$row['Citta']."</td><td>".$row['Eta']."</td></tr>";
}
echo "</table>";
}
?>
</form>
</body>
</html>
se clicco su ok però, la pagina non riporta i dati appena immessi.....dove sbaglio?