Foorumi";
$kysely = $yhteys->prepare("SELECT * FROM viestit");
$kysely->execute();
echo "Aika | Nimi | Viesti |
";
while ($rivi = $kysely->fetch()) {
$aika = $rivi["aika"];
$nimi = $rivi["nimi"];
$viesti = $rivi["viesti"];
echo "";
echo "$aika | ";
echo "$nimi | ";
echo "$viesti | ";
echo "
";
}
echo "
";
echo "Uusi viesti
";
$yhteys = null;
?>