I deployed my PHP project, and when I open its link it shows a Server connection not possible. error.
I sure about the username, password, and database name
Config code file
<?php
$db=new DB("wpaps_w2015","localhost","wpaps_dbuser","@beqwwqsT;67l");
?>
And this is the db.class.php file related to the DB connection :: Constructor
function DB($base, $server, $user, $pass)
{
error_reporting(0);
$this->mtStart = $this->getMicroTime();
$this->nbQueries = 0;
$this->lastResult = NULL;
mysqli_connect($server, $user, $pass) or die('Server connecion not possible.');
mysqli_select_db($base) or die('Server connecion not possible.');
}
I need someone to help me to understand what is wrong with the project, or to solve this error manually