This commit is contained in:
SJ
2014-02-26 10:23:59 +01:00
parent 81b6f2357d
commit 4421c573d2
2 changed files with 18 additions and 5 deletions

View File

@ -42,7 +42,10 @@ class MySQL {
$s = $this->link->prepare($sql);
if(!$s) { return $query; }
$s->execute($arr);
try {
$s->execute($arr);
}
catch(PDOException $exception) { }
$this->affected = $s->rowCount();