essayez ceci
echo "TRY CONNECTION";
$conn =new mysqli($servername, $username, $password,$database);
echo "EXECUTED CONNECTION";
ou peut-être ceci
$con = mysqli_connect("localhost","my_user","my_password","my_db");
essayez ceci
echo "TRY CONNECTION";
$conn =new mysqli($servername, $username, $password,$database);
echo "EXECUTED CONNECTION";
ou peut-être ceci
$con = mysqli_connect("localhost","my_user","my_password","my_db");