English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

Usage and Example of PHP odbc_longreadlen() Function

PHP ODBC Reference Manual

Handling of long columns by odbc_longreadlen() function

Syntax

bool odbc_longreadlen ( resource $result_id , int $length )

Definition and Usage

It is used to handle long columns

Return Value

Returns true on success, otherwise returns false

Parameter

Serial NumberParameters 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.

Example

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);
?>

PHP ODBC Reference Manual