docu update

This commit is contained in:
ralf 2023-04-18 15:06:49 +02:00
parent 7bfa4a7ac8
commit df63934fcc

View File

@ -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();