#19268 [Fbk->Bgs]: IBM DB2 ACCESS FAIL

From: Date: Fri, 06 Sep 2002 21:35:35 +0000
Subject: #19268 [Fbk->Bgs]: IBM DB2 ACCESS FAIL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18589@lists.php.net to get a copy of this message
ID: 19268 Updated by: kalowsky@php.net Reported By: jean-paul.pires@eu.rhodia.com -Status: Feedback +Status: Bogus Bug Type: ODBC related Operating System: w2k sp2 PHP Version: 4.2.1 New Comment: Actually after talking with dams, the error you received says it all. Connection failure. For some reason, your connection is not being made. Check to ensure that your $connexion_odbc is valid before you use it first of all. The actual error is in the odbc_pconnect() call judging from that warning. It's not receiving a valid SQLConnect() call. This is most likely a local user configuration error, and not a PHP bug. Previous Comments: ------------------------------------------------------------------------ [2002-09-06 16:20:33] kalowsky@php.net A) Think you can translate that Error message to english for me? B) Can you post a full simple sample script for me to look at? C) Care to share the ODBC section of your PHP.ini file as well? ------------------------------------------------------------------------ [2002-09-06 11:25:12] jean-paul.pires@eu.rhodia.com Hello, (Sorry for my bad english writting) This script work well since php v4.04 : //ODBC line 45 : $connexion_odbc = odbc_pconnect ("toto","toto","toto"); line 46 : $selection_odbc = "select ciccli from CLIIDTP where cidann = 0 order by ciccli"; $resultat_odbc = odbc_exec($connexion_odbc, $selection_odbc); but now with php 4.2.1 : Warning: SQL error: [IBM][Pilote ODBC de Client Access (32 bits)][SQL DB2/400]Echec de liaison. COMM RC=0x5, SQL state 08S01 in SQLConnect in maj_clients.php on line 45 So i try the odbc driver to attack db2 database with ms access and it work well. (http server configuration : apache 1.3 on win2k pro sp2) So, if anyone can help me ? I'll be very happy. Bye. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19268&edit=1

« previous php.bugs (#18589) next »