odbc_result

PHP 4, PHP 5, PHP 7, PHP 8
odbc_result - Get result data
Manual
Code Examples

odbc_result( resource$statement, string|int$field ): string|bool|null

Get result data

Parameters

statement

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.

Return Values

Returns the string contents of the field, false on error, null for NULL data, or true for binary data.

Notes

Field indices start from 1. Regarding the way binary or long column data is returned refer to odbc_binmode and odbc_longreadlen.

Example of odbc_result

Show all examples for odbc_result

PHP Version: