|
mysqli_result::$field_countmysqli_num_fieldsGet the number of fields in a result DescriptionObject oriented style int$mysqli_result->field_count;
Procedural style
int mysqli_num_fields
( mysqli_result
$result
)Returns the number of fields from specified result set. Parameters
Return ValuesThe number of fields from a result set. ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php The above examples will output: Result set has 5 fields. See Also
|