Home > PHP > Function > ODBC > odbc_result()

odbc_result()

odbc_result - Get result data

Syntax

mixed odbc_result (resource $result_id, mixed $field)

Arguments

  • result_id - The ODBC resource.
  • field - The field name being retrieved. It can either be an integer containing the column number of the field you want; or it can be a string containing the name of the field.

Description

Get result data

Version

PHP 4, 5

Return value

Returns the string contents of the field, FALSE on error, NULL for NULL data, or TRUE for binary data.