database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
ㆍDB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
DB2 Q&A 108 게시물 읽기
No. 108
php 4.0.6에서 odbc함수 바뀐 점...
작성자
revizes
작성일
2001-08-14 19:38
조회수
13,656

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이 나올예정인듯...아니면 할수없구요..-_-;

[Top]
No.
제목
작성자
작성일
조회
114[재질문] *.txt데이터를 DB2 데이터베이스에 어떻게 넣죠.??? [1]
정규성
2001-09-06
12894
130┕>Re: [재질문] *.txt데이터를 DB2 데이터베이스에 어떻게 넣죠.???
김춘오
2001-09-28 22:00:17
14194
112[질문] *.txt파일의 데이터를 DB2 데이터 베이스로 어떻게 넣죠.???
정규성
2001-09-05
12325
113┕>Re: [질문] *.txt파일의 데이터를 DB2 데이터 베이스로 어떻게 넣죠.??? [1]
조율제
2001-09-05 21:43:37
15715
109안뇽하세요.^^ DB2 SDK 다운 받을 수 있는 곳 아시는지요?
이주원
2001-08-15
13494
110┕>Re: 안뇽하세요.^^ DB2 SDK 다운 받을 수 있는 곳 아시는지요?
조율제
2001-08-20 02:37:45
13930
108php 4.0.6에서 odbc함수 바뀐 점...
revizes
2001-08-14
13656
105오라클 일본어 아시는분
콜라뚜껑
2001-08-03
13294
106┕>Re: 오라클 일본어 아시는분
조율제
2001-08-06 00:07:35
14140
104윈도우DB2 제어센타에서 원격서버의 DB2에 연결하려면??
전재욱
2001-08-01
13374
107┕>Re: 윈도우DB2 제어센타에서 원격서버의 DB2에 연결하려면??
조광호
2001-08-07 15:50:09
14413
115┕>Re: 윈도우DB2 제어센타에서 원격서버의 DB2에 연결하려면??
이전건
2001-09-13 13:53:33
13781
103Clustering DB2 for Windows NT
정재익
2001-07-24
14048
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.021초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다