PHP mysqli_field_tell() Function
Retrieve field information for all fields, then get the current field with mysqli_field_tell() and output the field name, table and maximum length:
";
printf("字段名: %s", $fieldinfo->name);
echo "
";
printf("表名: %s", $fieldinfo->table);
echo "
";
}
// Release the result set
mysqli_free_result($result);
}
mysqli_close($con);
?>
Definition and Usage
The mysqli_field_tell() function returns the position of the field pointer.
Syntax
mysqli_field_tell(
result
)
;
| Parameters | Description |
|---|---|
| result | Required. Specifies the result set identifier returned by mysqli_query(), mysqli_store_result(), or mysqli_use_result(). |
Technical Details
| Return Value: | Returns the current offset of the field pointer. |
|---|---|
| PHP Version: | 5+ |
PHP MySQLi Reference Manual