/** * Get an ORACLE database object * */ function &getOracleDBO() { require_once dirname(__FILE__) . DS . 'database' . DS . 'database' . DS . 'oracle.php'; static $instance; $instance = MyOracleDB::getInstance(); return $instance; }
/** * select calstirmaz * * Ornek: * //Delete all rows from the FRUIT table * $count = $dbh->exec("DELETE FROM fruit WHERE colour = 'red'"); * * //Return number of rows that were deleted * print("Deleted $count rows.\n"); * * */ public function exec($sql) { $sql = $this->convertToIso($sql); // Check if an instance is ceated if (self::$_instance === NULL) { self::$_instance = new self(); } return $this->_pdo->exec($sql); }