PHP:
<?php
$sql = "select * from base-7-11 ";
$result = $connessione->query($sql);
echo "<table border=1 width=400 height=100 cellpadding=0 cellspacing=0 >
<tr>
<th align=center> nome </th>
<th align=center> cognome </th>
<th align=center> elimina </th>
</tr>
";
while ($row = $result ->fetch_array())
{
echo "
<tr>
<td cellpadding=0 cellspacing=0 bgcolour=blue> " . $row["NOME"] . "</td>
<td cellpadding=0 cellspacing=0 bgcolour=blue>" . $row["COGNOME"] . "</td>
<td cellpadding=0 cellspacing=0 bgcolour=blue> <a href=base3-7-11.php?ide=" . $row["ID"] ."> ELIMINA</a> </td>
</tr>";
}
echo "</table>";
$connessione->close();
?>
Ultima modifica di un moderatore: