Commit 612c1aeb authored by Stuart John Watson's avatar Stuart John Watson

Changed bindParam to bindValue

parent 58f6921e
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
function sqlite3Exists($table,$col,$val){ function sqlite3Exists($table,$col,$val){
global $DB_CON; global $DB_CON;
$query = $DB_CON->prepare("SELECT 1 FROM $table WHERE $col = :val LIMIT 1"); $query = $DB_CON->prepare("SELECT 1 FROM $table WHERE $col = :val LIMIT 1");
$query->bindParam(':val', $val); $query->bindValue(':val', $val);
return (bool) $query->execute()->fetchArray(); return (bool) $query->execute()->fetchArray();
} }
function sqlite3Exec($query){ function sqlite3Exec($query){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment