// code...
die('cannot connect to database');
}
else
{
if (@mysqli_select_db('test'))
{
echo "connected";
}
else
{
die('cannot connect to databaise');
}}
?>
👆👆anyone
<?php $mysql_host = 'localhost'; $mysql_user = 'root'; $mysql_password = 'root'; $mysql_DB = 'test'; if (!@mysqli_connect($mysql_host,$mysql_user,$mysql_password , $mysql_DB)) { // code... die('cannot connect to database'); } else { { die('cannot connect to databaise'); } } ?> why you don't try this way? 👀
Обсуждают сегодня