Location: PHPKode > scripts > user-agent.org > data/sql.php
<?php
//--------------------------------------------------------
//           START OF MYSQL CONFIGURATION FILE 
//--------------------------------------------------------

if(!isset($g_link)){
    $g_link = false;
    }
function GetMyConnection(){
    $db_host = "localhost"; 
	// MySQL Data Base user name 
	$db_user = "";  
	// MySQL Data Base Password
	$db_password = "";
	// MySQL Data Base Name
	$db_name = "user_agents"; 
	global $g_link;
if($g_link)
	return $g_link;
	$g_link = mysql_connect($db_host, $db_user, $db_password) or die('Could not connect to mysql server.' );
	mysql_select_db($db_name, $g_link) or die('Could not select database.');
	return $g_link;
}
function CleanUpDB(){
	global $g_link;
if($g_link != false)
	mysql_close($g_link);
	$g_link = false;
}
//--------------------------------------------------------
//           END OF MYSQL CONFIGURATION FILE 
//--------------------------------------------------------
?>
Return current item: user-agent.org