X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdba.php;h=16d2dc54d9cc1a362028699c974f41a8299174fb;hb=edbdd0e34a90612349001fbfc4f2246f23ab36ab;hp=082a54bd496694875cb7756974f049c2f065a179;hpb=8e50254bb994592b28e04299a4bfc11f4c8c979a;p=friendica.git diff --git a/include/dba.php b/include/dba.php index 082a54bd49..16d2dc54d9 100644 --- a/include/dba.php +++ b/include/dba.php @@ -109,6 +109,17 @@ class dba { return $return; } + /** + * @brief Returns the selected database name + * + * @return string + */ + public function database_name() { + $r = $this->q("SELECT DATABASE() AS `db`"); + + return $r[0]['db']; + } + /** * @brief Returns the number of rows *