public static function ExecuteQuery($sql) { $connection = DBConnectionManager::get_connection(DATABASE_HOST, DATABASE_USER, DATABASE_PASSWORD, DATABASE_NAME); $db = MDB::cursor($connection, ''); return $db->fetchObject($db->query($sql)); }
public static function ExecuteQuery($sql, $use_memcache = USE_MEMCACHE, $memcache_seconds = MEMCACHE_SECONDS, $memcache_custom_key = NULL) { $db = MDB::cursor(''); $db->SetConnection(DBConnectionManager::getProperConnection($sql)); return $db->query($sql, $use_memcache, $memcache_seconds, $memcache_custom_key); }