odbc_binmode()
odbc_binmode - Handling of binary column data
Syntax
bool odbc_binmode (
resource $result_id,
int $mode)
Arguments
- result_id - The result identifier. If result_id is 0, the settings apply as default for new results. Note: Default for longreadlenis 4096and mode defaults to ODBC_BINMODE_RETURN. Handling of binary long columns is also affected by odbc_longreadlen().
- mode - Possible values for mode are: ODBC_BINMODE_PASSTHRU : Passthru BINARY data ODBC_BINMODE_RETURN : Return as is ODBC_BINMODE_CONVERT : Convert to char and return
Description
Enables handling of binary column data. ODBC SQL types affected are BINARY, VARBINARY, and LONGVARBINARY.
Version
PHP 4, 5
Return value
Returns TRUE on success or FALSE on failure.