回答編集履歴
1
追記
test
CHANGED
@@ -1,21 +1,9 @@
|
|
1
|
-
```
|
1
|
+
```diff
|
2
2
|
|
3
|
-
$statement = $db->prepare('DELETE FROM memos WHERE id?');
|
3
|
+
- $statement = $db->prepare('DELETE FROM memos WHERE id?');
|
4
|
+
|
5
|
+
+ $statement = $db->prepare('DELETE FROM memos WHERE id = ?');
|
4
6
|
|
5
7
|
$statement ->execute(array($id));
|
6
8
|
|
7
9
|
```
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
↓
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
```php
|
16
|
-
|
17
|
-
$statement = $db->prepare('DELETE FROM memos WHERE id = ?');
|
18
|
-
|
19
|
-
$statement ->execute(array($id));
|
20
|
-
|
21
|
-
```
|