The mysqli_field_seek() function sets the field cursor to the given field offset.
Set the field cursor to the first field (column) in the result set, then get the field info with mysqli_fetch_field() and print the field's name, table, and max length:
Parameter | Description |
---|---|
result | Required. Specifies a result set identifier returned by mysqli_query(), mysqli_store_result() or mysqli_use_result() |
fieldnr | Required. Specifies the field number. Must be an integer between 0 and number of fields -1 |