note 10103 added to odbc_longreadlen
| From: | jasendorf at lcounty dot com | Date: | Wed, 13 Dec 2000 21:26:54 +0000 |
| Subject: | note 10103 added to odbc_longreadlen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8709@lists.php.net to get a copy of this message | ||
I had a heck of a time figuring out what to do with this function. Here's a little piece of
code from Jason Lee which I found that might help someone else...
$cur = odbc_exec($cnx, $query);
if(!$cur) {
/* error handler */
}
odbc_binmode($cur, ODBC_BINMODE_PASSTHRU);
odbc_longreadlen($cur, 16384); /* Allow 16kb thru */
while(odbc_fetch_row($cur)) {
$bigger_than_4096_var = odbc_result($cur, 1);
/* etc... */
Hope this helps someone, John
http://www.php.net/manual/function.odbc-longreadlen.php