diff options
Diffstat (limited to 'MainDb.php')
-rw-r--r-- | MainDb.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -62,6 +62,12 @@ class MainDb trigger_error('Cloning disabled', E_USER_ERROR); } + public function one($sql, $data = NULL) + { + $result = self::fetch($sql, $data); + return current($result); + } + //// // execute an SQL query // @return mixed |