We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db6bbac commit 9fd8208Copy full SHA for 9fd8208
src/Databases/MySQL.php
@@ -57,7 +57,7 @@ public function prepare($query) {
57
* @return int
58
*/
59
public function exec($query, array $params = array()) {
60
- $stmt = $this->pdo->query($query);
+ $stmt = $this->pdo->prepare($query);
61
$stmt->execute($params);
62
$result = $stmt->rowCount();
63
$stmt->closeCursor();
0 commit comments