<?php

require_once dirname(__FILE__)."/class_db.php";

class Database_MySQL extends {
	public function Connect($host, $username, $password, $dbname, $schema = "") {
		if($this->conn !== null) throw new DatabaseException("Already connected to the server");
		
		$this->dbname = $dbname;
		$this->schema = $schema;
		try {
			$this->conn = new PDO("mysql:dbname=$dbname;host=$host", $username, $password);
		} catch (PDOException $e) {
			throw new DatabaseException($e->getMessage());
		}
	}
}