[PHP] Re: PHP and DB2 on AS400

2003-03-07 Thread Alejandro Trujillo J.
I never do that, but, you can do it with the ODBC that is supported in Windows PHP version, that is my idea for you. -- Alejandro Trujillo J. Cube Systems LTDA. web : csltda.com Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.

[PHP] Re: PHP and DB2

2003-01-10 Thread Scott Fletcher
G... I meant to say "Be careful of the PHP bug". "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Be care of the PHP bug on one of hte php function, odbc_fetch_row(). This > function does not very well start at 0 when the odbc_fetch_row() s

[PHP] Re: PHP and DB2

2003-01-10 Thread Scott Fletcher
Be care of the PHP bug on one of hte php function, odbc_fetch_row(). This function does not very well start at 0 when the odbc_fetch_row() start automatically, so you'll have to at the counter inside the function. Why is that, I do not know. Here's the example of the workaround I did. --clip--

[PHP] Re: PHP and DB2

2003-01-10 Thread Scott Fletcher
Yes, it can. Use the odbc_connect. Here's what I use that work... --clip-- $database = "TEST_DB"; $user = "db2inst1"; $pass = "ibmdb2"; $cid = @odbc_connect($database,$user,$pass) or die("Unable to Connect to Database !!!") ; if ($cid == 0){ exit("Unable to Connect to Da