Database_Core add function with the number of cols
This commit is contained in:
parent
cd34856cfe
commit
61db6699e0
1 changed files with 8 additions and 0 deletions
|
|
@ -946,6 +946,14 @@ class DatabaseCore
|
|||
$csv->write();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Returns the number of columns in a ret
|
||||
* @param handler $p_ret handler to a query
|
||||
*/
|
||||
static function nb_column($p_ret) {
|
||||
return pg_num_fields($p_ret);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* test::test_me(); */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue