I'm getting an error connecting to the database
Php Code:
<?php
$siteA = 'http://www.'.$_SERVER['SERVER_NAME'].'/';
$siteB = '/';
$email_suporte_staff = '[email protected]';
global $siteB;
global $siteA;
$config_bd = array(
'host' => 'meuhost',
'db' => 'database',
'usuario' => 'databaseuser',
'senha' => 'password',
);
error_reporting (E_ALL & ~ E_NOTICE & ~ E_DEPRECATED);
$conect = mysql_connect($config_bd['host'], $config_bd['usuario'], $config_bd['senha']);
if($conect)
{
mysql_select_db($config_bd['db']);
mysql_set_charset('utf8');
}
else
{
echo '<center><b>config/config.php</b> nao configurado.</center>';
exit;
}
?>