@@ 26-30 (lines=5) @@ | ||
23 | $parameter = 0; |
|
24 | $statement = $this->prepareStatement($query, $sql); |
|
25 | ||
26 | for ($i = 0; $i < count($values); $i++) { |
|
27 | $type = $this->getPdoType($values[$i]); |
|
28 | $statement->bindParam($parameter, $values[$i], $type); |
|
29 | $parameter++; |
|
30 | } |
|
31 | $statement->bindParam($parameter, $id, PDO::PARAM_INT, 10); |
|
32 | $statement->execute(); |
|
33 | ||
@@ 86-90 (lines=5) @@ | ||
83 | $statement = $this->prepareStatement($query, $sql); |
|
84 | ||
85 | // bind values. |
|
86 | for ($i = 0; $i < count($values); $i++) { |
|
87 | $type = $this->getPdoType($values[$i]); |
|
88 | $statement->bindParam($parameter, $values[$i], $type); |
|
89 | $parameter++; |
|
90 | } |
|
91 | ||
92 | // bind blob fields. |
|
93 | for ($i = 0; $i < count($binaries); $i++) { |