Tuesday 18 October 2005 4:17:22 am
First of all, you will need the Oracle database extension. Then you'll need to call the method <i>instance</i> of the class <i>eZDB</i>:
$db =& eZDB::instance( $databaseImplementation, $databaseParameters, $forceNewInstance );
$databaseParameters is an array with these keys (some of them are optional): server, user, password, database, use_slave_server, slave_server, slave_password, slave_database, charset, socket, builtin_encoding, connect_retries, use_persistent_connection and show_errors. Take a look in lib/ezdb/classes/ezdb.php for more information. Then you can query your database:
$result = $db->query( $sql );
or $resultArray = $db->arrayQuery( $sql );
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
|