回答編集履歴
1
追記
test
CHANGED
@@ -15,3 +15,25 @@
|
|
15
15
|
$stmt->execute();
|
16
16
|
|
17
17
|
```
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
より、こっちのほうがいいですね。
|
22
|
+
|
23
|
+
```php
|
24
|
+
|
25
|
+
$stmt = $pdo->prepare("UPDATE wp5_entitymaster SET first=:first, second=:second WHERE secid = :secid");
|
26
|
+
|
27
|
+
for ($ii=0; $ii <=57; $ii++) {
|
28
|
+
|
29
|
+
$stmt->bindParam(':first', $comb[$ii][1], PDO::PARAM_INT);
|
30
|
+
|
31
|
+
$stmt->bindParam(':second', $comb[$ii][2], PDO::PARAM_INT);
|
32
|
+
|
33
|
+
$stmt->bindParam(':secid', $comb[$ii][0], PDO::PARAM_INT);
|
34
|
+
|
35
|
+
$stmt->execute();
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
```
|