function OpenDB() { $_retval = false; CreateDbClass(); return $GLOBALS['oDB']->MySqlLogon($GLOBALS['appDB'], "userid", "password"); //return $GLOBALS['oDB']->OdbcLogon("northwind2","Northwind","userid","password"); //return $GLOBALS['oDB']->OracleLogon("XE","northwind","password"); }
function OpenDB() { global $oDB; CreateDbClass(); // This is where the database connection is made // Uncomment the appropriate line for your database // Using MySQL // $oDB->Provider="MySQLremoveserver" // required if MySQL is remote return $oDB->MySqlLogon($GLOBALS['appDB'], USER, PASS); // Connect via ODBC to a DSN //return $oDB->OdbcLogon("northwindDSN","Northwind","userid","password"); // Connect to Oracle XE // Make sure the Oracle database is loaded with the sample database // $oDB->Provider="MySQLremoveserver" // required if Oracle is remote //return $oDB->OracleLogon("XE","northwind","password"); }