DB_result::numCols() -- Gets number of columns in a result set
Leírás
Get the number of columns of the rows in a result set.
Visszatérési érték
integer - number of columns
or a DB_Error object on failure
Megjegyzés
Ez a függvény nem hívható
statikusan.
Példa
Példa 35-1. Using numCols() <?php
// Once you have a valid DB object named $db...
$res =& $db->query('SELECT * FROM phptest');
echo $res->numCols();
?> |
|