質問編集履歴
1
phpコード修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,8 +12,10 @@
|
|
12
12
|
//event_dateカラムはdate型です
|
13
13
|
$search_date = htmlspecialchars($_POST["search_date"]);
|
14
14
|
$sql = "select * from sample where event_date = ?";
|
15
|
-
$stmt = $
|
15
|
+
$stmt = $dbh->prepare($sql);
|
16
16
|
//DBハンドラー用意済み
|
17
|
-
$
|
17
|
+
$stmt->execute($stmt, $search_date);
|
18
18
|
|
19
|
-
```
|
19
|
+
```
|
20
|
+
記述ミスがあったため訂正いたしました。
|
21
|
+
ちなみに、date型カラムの抽出条件としてtype="date"のvalueでそのまま対応できますか?
|