"SET CHARACTER SET 'utf8'"
));
} catch(PDOException $e){
die($e->getMessage());
}
$sql = "SELECT id,name,time FROM board";
$result = $pdo->query($sql);
while($row = $result->fetch(PDO::FETCH_ASSOC)){
echo "[" . $row["id"] . "]";
echo "投稿者:" . $row["name"] . " / ";
echo "内容を見る";
echo " (" . $row["time"] . ") ";
echo "
";
}
?>