note 66873 deleted from ref.datetime by nlopess

From: Date: Wed, 31 May 2006 09:44:39 +0000
Subject: note 66873 deleted from ref.datetime by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-112624@lists.php.net to get a copy of this message
Note Submitter: aj.david ---- <? class conn_db{ static $mydb; function __construct() { global $mydb; $dbconnector='mydb'; $dbserver=$dbconnector."server"; $dbuser=$dbconnector."user"; $dbpassword=$dbconnector."password"; $dbdatabase=$dbconnector."database"; global $$dbserver;global $$dbuser;global $$dbpassword;global $$dbdatabase; $dsn = " driver={IBM db2 odbc DRIVER}; Database=".$$dbdatabase."; hostname=".$$dbserver."; port=50000;protocol=TCPIP; uid=".$$dbuser."; pwd=".$$dbpassword."; "; $res = $$dbconnector->Connect($dsn); } function query_db($sql){ global $mydb; $sqlstr=$sql; $rs = $mydb->Execute($sqlstr); $arr = $rs->GetArray(); return $arr; } } ?>

« previous php.notes (#112624) next »