mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
PDO compatibilty function fetchSingle() was renamed in PDO to
fetchColumn($column_num=0): now both are available in ADOdb, thought fetchSingle is depricated and should no longer be used!
This commit is contained in:
parent
cc9d7445c3
commit
3b0f5e5ab2
File diff suppressed because it is too large
Load Diff
@ -30,8 +30,8 @@
|
||||
*
|
||||
* c) foreach($db->select($table,'*',$where,__LINE__,__FILE__,false,'',$app) as $row)
|
||||
*
|
||||
* To fetch only single column (of the next row):
|
||||
* $cnt = $db->query("SELECT COUNT(*) FROM ...")->fetchSingle();
|
||||
* To fetch only a single column (of the next row):
|
||||
* $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);
|
||||
|
Loading…
Reference in New Issue
Block a user