質問編集履歴

1

修正

2023/11/07 08:11

投稿

dera
dera

スコア28

test CHANGED
File without changes
test CHANGED
@@ -71,7 +71,7 @@
71
71
  $stmt->bindValue(':updated_at', $input_datetime);
72
72
 
73
73
  //idが0件の場合の処理
74
- $id_check = "select title, body from blog where id = $id";
74
+ $id_check = "select title, body from testtable where id = $id";
75
75
  $result = $dbh->query($id_check);
76
76
  $count = $result->rowCount();
77
77
  if ($count == 0) {