Location: PHPKode > projects > Guild DKP System > dkpsystem1.4/mysqldb.php
<?php
/**
 * mysqldb.php
 */
class MYSQLDB {
	//Variables
	var $connection;
	var $db;
	//Functions
	function MYSQLDB() {
		$this->connection = @mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(systemMessage("Database Error", mysql_error()));
		$this->db = @mysql_select_db(DB_NAME, $this->connection) or die(systemMessage("Database Error", mysql_error()));
	}
	function query($sql) {
		return mysql_query($sql, $this->connection);
	}
	function count_rows($sql) {
		return mysql_num_rows($sql);
	}
	function result($sql, $index=0) {
		return mysql_result($sql, $index);
	}
};
$db = new MYSQLDB;
?>
Return current item: Guild DKP System