Warning: mysqli_connect() [function.mysqli-connect]: (HY000/2005): Unknown MySQL server host 'db_s' (11004) in D:\AppServ\www\thebestth\DBEngine.php on line 8
not connect Database
Code (PHP)
<?php
$server = 'localhost';
$username = 'root';
$password = "root";
$database = 'db_s';
$mysqli = new mysqli($server, $username, $password) or die("not connect host");
$mysqli = mysqli_connect($database) or die("not connect Database");
$mysqli->set_charset("utf8");
if ($mysqli->connect_errno) {
echo $mysqli->connect_error;
exit;
}