"SET CHARACTER SET 'utf8'"
));
} catch(PDOException $e){
die($e->getMessage());
}
$sql = "SELECT id,name,message,time FROM board WHERE id="
. $_GET["id"];
$result = $pdo->query($sql);
while($row = $result->fetch(PDO::FETCH_ASSOC)){
echo "伝言ID:" . $row["id"] . "
";
echo "投稿者:" . $row["name"] . "
";
echo "伝言:" . $row["message"] . "
";
echo "投稿時刻:" . $row["time"] . "
";
}
?>