Location: PHPKode > projects > Simple Fast Blog > simple-fast-blog/admin/includes/database.php
<?php
/*****/
/*
Written by: Aziz S. Hussain
Email: hide@address.com
Produced under GPL License
*/
/*****/

function connectDatabase(){
	$DB_USER =  'root';
	$DB_PASSWORD = 'master';
	$DB_HOST = 'localhost';
	$DB_NAME = 'webauth';
	$dbc = @mysql_connect ($DB_HOST, $DB_USER, $DB_PASSWORD) or $error = mysql_error();
	@mysql_select_db($DB_NAME) or $error = mysql_error();

	if(strlen($error) > 10){
		echo "<!--$error.-->";
		exit();
		die();
	}
	return $dbc;
}

function disconnectDatabase($dbc){
	mysql_close($dbc);
}

?>
Return current item: Simple Fast Blog