下記プログラムを実行すると、このようなエラーが出ます。
タッチしたidが消えるようにしたいのですが、どうしたらいいのでしょうか
Warning: Cannot modify header information - headers already sent by (output started at E:\xampplite\htdocs\10\delete.php:6) in E:\xampplite\htdocs\10\delete.php on line 18
<?php try { $id = $_GET["id"]; echo $id; $db = new PDO('sqlite:php.db'); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $db->prepare($sql); $stmt->bindValue(':users_select', $id); $stmt->execute(); header("Location: users_select.php"); exit(); } catch (PDOException $e) { //エラー表示 $err = $db->errorInfo(); die($err[2]); } ?>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/06/21 04:38
2019/06/21 04:42
2019/06/21 04:56 編集
2019/06/21 04:57