diff options
author | Filipp Lepalaan <filipp@mekanisti.fi> | 2009-10-13 10:42:01 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mekanisti.fi> | 2009-10-13 10:42:01 +0300 |
commit | 08cba850d34f1e3692ec2aa9ff051fdeabe47b7f (patch) | |
tree | bfc77312d1071d2785359e3a8a6067c377668319 /Db.php | |
parent | b9d2b8467dd4046512b86e0f63feefb6b06c2789 (diff) | |
download | main-08cba850d34f1e3692ec2aa9ff051fdeabe47b7f.tar.gz main-08cba850d34f1e3692ec2aa9ff051fdeabe47b7f.tar.bz2 main-08cba850d34f1e3692ec2aa9ff051fdeabe47b7f.zip |
Some more fixes
Diffstat (limited to 'Db.php')
-rw-r--r-- | Db.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -52,6 +52,7 @@ class Db /** * Execute an SQL query + * @return mixed */ public function query($sql, $data = null) { @@ -92,6 +93,12 @@ class Db return $data; } + + public function fetch($sql, $data = null) + { + $stmt = DB::query($sql, $data); + return $stmt->fetchAll(PDO::FETCH_ASSOC); + } } |