<?php
function connectdb2()
{
$db_host = "127.0.0.1";
$db_username = "jukebox123";
$db_pass = "jukebox123";
$db_name = "jukebox";
global $con;
global $ConnectionFlag;

$con=@mysqli_connect("$db_host", "$db_username", "$db_pass", "$db_name");

if(!$con)
{
	return("Connection to database failed.");
}

if(!@mysqli_select_db($con,"$db_name"))
{
	return("Database does not exist.");
}

$ConnectionFlag = true;
return("");
}

function closedb2($con)
{
	global $ConnectionFlag;
	$ConnectionFlag = false;
	@mysqli_close($con);
}
?>