PHP mysqli_field_seek() Function

The mysqli_field_seek() function sets the field cursor to the given field offset.

Examples -

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:

ParameterDescription
resultRequired. Specifies a result set identifier returned by mysqli_query(), mysqli_store_result() or mysqli_use_result()
fieldnrRequired. Specifies the field number. Must be an integer between 0 and number of fields -1