Home > PHP > Function > mSQL > msql_field_type()

msql_field_type()

msql_field_type - Get field type

Syntax

string msql_field_type (resource $result, int $field_offset)

Arguments

  • result - The result resource that is being evaluated. This result comes from a call to msql_query().
  • field_offset - The numerical field offset. The field_offset starts at 1.

Description

msql_field_type() gets the type of the specified field index.

Version

PHP 4, 5

Return value

The type of the field. One of int, char, real, ident, nullor unknown. This functions will return FALSE on failure.