PHP:
<?php
$dbName = 'test';
$host = 'localhost';
$username = 'root';
$password = 'root';
$secretGameKey = "12345";
$secretServerKey = "54321";
function dbConnect()
{
global $dbName;
global $host;
global $username;
global $password;
$link = mysqli_connect($host, $username, $password);
if(!$link)
{
fail("Couldn�t connect to database server");
}
if(!@mysqli_select_db($dbName))
{
fail("Couldnt find database $dbName");
}
return $link;
}
function safe($variable)
{
$variable = addslashes(trim($variable));
return $variable;
}
function fail($errorMsg)
{
print $errorMsg;
exit;
}
?>
Couldnt find database test все данные верные в чом проблемка