-1
I’m having a question, is there any way to redirect the user to a page 404 in case you can’t find the database on the connection? follows my code
$banco = 'qfood_'.$bdv;
$conn1 = mysqli_connect('localhost', 'root', '', "$banco");
$database_conn1 = "$banco";
//verifica a conexão
if ($conn1->connect_error) {
die("Falha ao realizar a conexão: " . $conn1->connect_error);
} else{
$conn1->set_charset("utf8");
}
?>