From df63934fcc9c1077849245efe674959d6a4972f3 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 18 Apr 2023 15:06:49 +0200 Subject: [PATCH] docu update --- api/src/Db.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Db.php b/api/src/Db.php index 003d841789..59a93cb5d5 100644 --- a/api/src/Db.php +++ b/api/src/Db.php @@ -37,9 +37,9 @@ if(empty($GLOBALS['egw_info']['server']['db_type'])) * $cnt = $db->query("SELECT COUNT(*) FROM ...")->fetchColumn($column_num=0); * * To fetch a next (single) row, you can use: - * $row = $db->query("SELECT COUNT(*) FROM ...")->fetch($fetchmod=null); + * $row = $db->query("SELECT * FROM ...")->fetch($fetchmod=null); * - * Api\Db allows to use exceptions to catch sql-erros, not existing tables or failure to connect to the database, eg.: + * Api\Db allows to use exceptions to catch sql-errors, not existing tables or failure to connect to the database, eg.: * try { * $this->db->connect(); * $num_config = $this->db->select(config::TABLE,'COUNT(config_name)',false,__LINE__,__FILE__)->fetchColumn();