PHP » PYTHON |
login |
register |
about
|
|
mysql_field_type(PHP 4, PHP 5) mysql_field_type — Get the type of the specified field in a result Description
string mysql_field_type
( resource $result
, int $field_offset
)
mysql_field_type() is similar to the mysql_field_name() function. The arguments are identical, but the field type is returned instead. Parameters
Return ValuesThe returned field type will be one of "int", "real", "string", "blob", and others as detailed in the » MySQL documentation. Examples
Example #1 mysql_field_type() example
<?phpThe above example will output something similar to: Your 'func' table has 4 fields and 1 record(s) The table has the following fields: string name 64 not_null primary_key binary int ret 1 not_null string dl 128 not_null string type 9 not_null enum
Notes
See Also
|
more
Recently updated
more
Most requested
|