Developer Forums | About Us | Site Map
Search  
HOME > PHPMANUAL


Sponsors





Web Host
site hosted by netplex
Partners

Online Manuals

mysqli_fetch_field

(PHP 5 CVS only)

mysqli_fetch_field -- Returns the next field in the result set

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

AttributeDescription
nameThe name of the column
orgname?
tableThe name of the table this field belongs to (if not calculated)
orgtable?
defThe default value for this field, represented as a string
max_lengthThe maximum width of the field for the result set.
flagsAn integer representing the bit-flags for the field.
typeThe data type used for this field
decimalsThe number of decimals used (for integer fields)

Copyright 2004-2024 GrindingGears.com. All rights reserved. Site hosted by NETPLEX