English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Handling of long columns by odbc_longreadlen() function
bool odbc_longreadlen ( resource $result_id , int $length )
It is used to handle long columns
Returns true on success, otherwise returns false
Serial Number | Parameters and Description |
---|---|
1 | result_id Result Identifier |
2 | length The number of bytes returned to PHP is controlled by the parameter length. If it is set to 0, the long column data will be passed to the client. |
Try the following example
<?php $input_ID = odbc_connect("DSN","user_id","pass_id"); $result = odbc_exec($input_ID, "SELECT Notes FROM Employees"); odbc_longreadlen($result, 8080); echo odbc_result($result,1); ?>