php 4.0.6로 업그레이드하다가 전에 잘되던
db2 게시판이 안되서...www.php.net에서
메뉴얼을 봤더니..
odbc_fetch_into가 바뀌었군요..
영어가 짧아서.... 예를 보니..대충 알겠군요..
Example 1. odbc_fetch_into() 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.
Example 2. odbc_fetch_into() 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.
참고하시길....
ps> 글을 보니 php 4.1이 나올예정인듯...아니면 할수없구요..-_-;
|