3 require_once('dbClass.php');
5 function CreateDbClass() {
7 $oDB = new dbClass(); // from dbClass2
9 // What dialect of SQL will we be speaking?
11 //$oDB->Dialect="MySQL" // this is the default, so you can leave it commented
12 //$oDB->Dialect="Oracle";
13 //$oDB->Dialect="TSQL";
14 //$oDB->Dialect="Access";
15 $oDB->Dialect="PostgreSQL";
22 // This is where the database connection is made
23 // Uncomment the appropriate line for your database
26 // $oDB->Provider="MySQLremoveserver" // required if MySQL is remote
27 return $oDB->PostgreSqlLogon(DBNAME, DBUSER, DBPASS);
29 // Connect via ODBC to a DSN
30 //return $oDB->OdbcLogon("northwindDSN","Northwind","userid","password");
32 // Connect to Oracle XE
33 // Make sure the Oracle database is loaded with the sample database
34 // $oDB->Provider="MySQLremoveserver" // required if Oracle is remote
35 //return $oDB->OracleLogon("XE","northwind","password");