mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 05:29:13 +01:00
docu update
This commit is contained in:
parent
7bfa4a7ac8
commit
df63934fcc
@ -37,9 +37,9 @@ if(empty($GLOBALS['egw_info']['server']['db_type']))
|
|||||||
* $cnt = $db->query("SELECT COUNT(*) FROM ...")->fetchColumn($column_num=0);
|
* $cnt = $db->query("SELECT COUNT(*) FROM ...")->fetchColumn($column_num=0);
|
||||||
*
|
*
|
||||||
* To fetch a next (single) row, you can use:
|
* 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 {
|
* try {
|
||||||
* $this->db->connect();
|
* $this->db->connect();
|
||||||
* $num_config = $this->db->select(config::TABLE,'COUNT(config_name)',false,__LINE__,__FILE__)->fetchColumn();
|
* $num_config = $this->db->select(config::TABLE,'COUNT(config_name)',false,__LINE__,__FILE__)->fetchColumn();
|
||||||
|
Loading…
Reference in New Issue
Block a user