From e4ce56292016c2c5afce018f462ff3b5a69761f5 Mon Sep 17 00:00:00 2001 From: fser Date: Tue, 8 Jul 2014 14:39:37 +0200 Subject: [PATCH] added last_error() --- bureau/class/db_mysql.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bureau/class/db_mysql.php b/bureau/class/db_mysql.php index fcffa76c..31d399c9 100644 --- a/bureau/class/db_mysql.php +++ b/bureau/class/db_mysql.php @@ -107,6 +107,9 @@ class DB_Sql { return $this->pdo_instance != FALSE; } + function last_error() { + return $this->error; + } /** * Perform a query *