Location: PHPKode > projects > Stack's Wiki > stacks-wiki-0.5.1/www/includes/database.php
<?
$database_hostname = "localhost";
$database_username = "wiki";
$database_password = "wiki";
$database_database = "wiki";
$database_prefix = "";

function get_connection()
{
	global $database_hostname, $database_username, $database_password, $database_database;
	
	$db = mysql_connect($database_hostname, $database_username, $database_password);
	if (!$db) die("Could not connect to the database: " . mysql_error());
	
	$ret = mysql_select_db($database_database, $db);
	if (!$ret) die("Could not select the database: " . mysql_error());
	
	return $db;
}
Return current item: Stack's Wiki