From cfd8646a7a09121ab6c5f4645e5d8e44ad26468e Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Thu, 28 Jun 2001 15:54:29 +0000 Subject: [PATCH] updated to reflect new functionality in 4.0.6, and warn users of the future change git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@50297 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/uodbc.xml | 48 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/functions/uodbc.xml b/functions/uodbc.xml index 9a30623a0e..91cd8a68b9 100644 --- a/functions/uodbc.xml +++ b/functions/uodbc.xml @@ -506,6 +506,54 @@ array. The array will contain the column values starting at array index 0. + + + <function>odbc_fetch_into</function> pre 4.0.6 example + +$rc = odbc_fetch_into($res_id, $my_array); + + or + +$rc = odbc_fetch_into($res_id, $row, $my_array); + +$rc = odbc_fetch_into($res_id, 1, $my_array); + + + + + As of PHP 4.0.5 the result_array does not need + to be passed by reference any longer. + + + As of PHP 4.0.6 the rownumber cannot be passed + as a constant, but rather as a variable. + + + + <function>odbc_fetch_into</function> 4.0.6 example + +$rc = odbc_fetch_into($res_id, $my_array); + + or + +$row = 1; +$rc = odbc_fetch_into($res_id, $row, $my_array); + + + + + Future: In PHP 4.1, this function will be moved to the following format: + + + int odbc_fetch_into + int result_id + array result_array + int rownumber + + + Please note, that rownumber will be optional, + while result_array is not. +