Re: PHP and DB2

From: Date: Fri, 10 Jan 2003 15:38:50 +0000
Subject: Re: PHP and DB2
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131119@lists.php.net to get a copy of this message
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("<br><br><font color='red'><b>Unable to Connect to Database !!!</b></font><br><br>"); } --clip-- "Jack Schroeder" <jack.schroeder@bnsf.com> wrote in message news:3E1EE24F.1DA998E4@bnsf.com... > Can PHP connect to IMB DB2 dbms running on an AIX Unix server? > > Jack >

« previous php.general (#131119) next »