zkuste toto
echo "TRY CONNECTION";
$conn =new mysqli($servername, $username, $password,$database);
echo "EXECUTED CONNECTION";
nebo to může být toto
$con = mysqli_connect("localhost","my_user","my_password","my_db");
zkuste toto
echo "TRY CONNECTION";
$conn =new mysqli($servername, $username, $password,$database);
echo "EXECUTED CONNECTION";
nebo to může být toto
$con = mysqli_connect("localhost","my_user","my_password","my_db");