September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool odbc_longreadlen(resource result, int length)
Alters handling of LONG columns.
Returns:
Always TRUE
Description:
This function works closely with odbc_binmode() to control how data from certain database fields (in this case, LONG and LONGVARBINARY) is handled. The length parameter controls the number of bytes sent through to PHP, while a value of 0 causes the column data to pass straight through.
Version:
Existing since version 3.0.6
Example:
$db = odbc_connect("DSN","user","pass");
$result = odbc_exec($db, "SELECT Notes FROM Employees");
odbc_longreadlen($result, 4096);
echo odbc_result($result,1);
|
Read now
Unlock full access