conn = ADONewConnection($driver); $this->conn->PConnect($server, $user, $passwort, $database); } function Query($query, $args = null) { $sql = $this->conn->Prepare($query); return $this->conn->Execute($sql, $args); } function InsertID() { return $this->conn->Insert_ID(); } } $db = new DB($config['driver'], $config['server'], $config['user'], $config['password'], $config['db']); } ?>