Location: PHPKode > scripts > qAdmin > jonathan-fielding-qAdmin-04ccc6a/classes/site_config.class.php
<?php

//
// Name: Database Connection
// Decription: Class to handle the database connections of the web application.
// Author: Jonathan Fielding
// 

class site_config
{
	public $settings;
	public $error_message = "";
	
	public function dataquery($sql){
		if ($this->check_connection() == false) {
			$this->new_connection();
		}
		
		if($this->error_message == "none"){
			$data = mysql_query($sql);
			$this->error_message = mysql_error();
			return $data;
		}
	}
	
}

?>
Return current item: qAdmin