回答編集履歴
2
調整
test
CHANGED
@@ -34,8 +34,14 @@
|
|
34
34
|
|
35
35
|
print_r($data);
|
36
36
|
|
37
|
-
/
|
37
|
+
/*
|
38
38
|
|
39
|
+
$pdo = new PDO($dsn, $user,$password);
|
39
40
|
|
41
|
+
$stmt = $pdo->prepare($sql);
|
42
|
+
|
43
|
+
$stmt->execute($data);
|
44
|
+
|
45
|
+
*/
|
40
46
|
|
41
47
|
```
|
1
typo
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
if(is_array($postedWords)){
|
26
26
|
|
27
|
-
$sql.="and
|
27
|
+
$sql.="and word not in (".implode(",",array_fill(0,count($postedWords),"?")).") ";
|
28
28
|
|
29
29
|
$data=array_merge($data,$postedWords);
|
30
30
|
|