Skip to content

Commit

Permalink
forced bind value instead of bind parameter for insert
Browse files Browse the repository at this point in the history
  • Loading branch information
h2lsoft committed May 28, 2020
1 parent 641ec23 commit 91cb181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DBManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public function insert($row, $created_by='', $table='')
// bind parameters
foreach($columns as $column)
{
$prepared->bindParam(":{$column}", $row[$column]);
$prepared->bindValue(":{$column}", $row[$column]);
}

$prepared->execute();
Expand Down

0 comments on commit 91cb181

Please sign in to comment.