I was installing a site, after all I open the site and I come across this error:
Fatal error: Uncaught Error: Call to undefined function mysql_select_db () in /home/imwfzgbi/public_html/config/config.php:19 Stack trace: # 0 /home/imwfzgbi/public_html/index.php(15): include () # 1 {main} thrown in /home/imwfzgbi/public_html/config/config.php on line 19
Config.php:
<?php
$siteA = 'http://'.$_SERVER['SERVER_NAME'].'/';
$siteB = '/';
$email_suporte_staff = '[email protected]';
global $siteB;
global $siteA;
$config_bd = array(
'host' => 'localhost',
'db' => 'imwfzgbi_ultra',
'usuario' => 'imwfzgbi_flix',
'senha' => 'ultraflixbr',
);
$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;
}
?>
These are the files with the supposed error. Can anyone help me?