|
mysqli_result::$field_countmysqli_num_fieldsGets the number of fields in the result set DescriptionObject-oriented style int$mysqli_result->field_count;
Procedural style
int mysqli_num_fields(mysqli_result
$result )Returns the number of fields in the result set. Parameters
Return ValuesAn int representing the number of fields. ExamplesExample #1 Object-oriented style
Example #2 Procedural style
The above examples will output: Result set has 4 fields. See Also
|