mysqli_fetch_field
Description
object mysqli_fetch_field ( resource result)The mysqli_fetch_field() function is used to return the attributes of the next column in the result set represented by the result parameter as an object. When executed this function will return an object containing the attributes of the current column or FALSE if there are no more columns in the result set.
Table 1. Object attributes
Attribute | Description |
---|---|
name | The name of the column |
orgname | ? |
table | The name of the table this field belongs to (if not calculated) |
orgtable | ? |
def | The default value for this field, represented as a string |
max_length | The maximum width of the field for the result set. |
flags | An integer representing the bit-flags for the field. |
type | The data type used for this field |
decimals | The number of decimals used (for integer fields) |