|
|
(Next) DB_result::numRows() |
||||
| |
|||||
|
|||||
integer numCols (
)
Get the number of columns of the rows in a result set.
integer - number of columns or a DB_Error object on failure
This function can not be called statically.
Using numCols()
<?php
// Once you have a valid DB object named $db...
$res =& $db->query('SELECT * FROM phptest');
echo $res->numCols();
?>
|
|
(Next) DB_result::numRows() |
||||||||
| |
|||||||||
|
|||||||||