Location: PHPKode > scripts > Free PHP Lyric Plug-n-Play Website > free-php-lyric-plug-n-play-website/includes/database.php
<?php
/************* Lyrics 1.0 *****************************/
/*
Released by AwesomePHP.com, under the GPL License, a
copy of it should be attached to the zip file, or
you can view it on http://AwesomePHP.com/gpl.txt
*/
/************* Lyrics 1.0 *****************************/
function connect(){
	$DB_USER =  "root";
	$DB_PASSWORD = "";
	$DB_HOST = "localhost";
	$dbc = mysql_connect ($DB_HOST, $DB_USER, $DB_PASSWORD) or $error = mysql_error();
	mysql_select_db("freephp") or $error = mysql_error();
	mysql_query("SET NAMES `utf8`");

	return $error;
}

function disconnect_data(){
	@mysql_close($dbc);
	@mysql_close();
}
?>
Return current item: Free PHP Lyric Plug-n-Play Website