spróbuj tego
echo "TRY CONNECTION";
$conn =new mysqli($servername, $username, $password,$database);
echo "EXECUTED CONNECTION";
lub może to być
$con = mysqli_connect("localhost","my_user","my_password","my_db");
spróbuj tego
echo "TRY CONNECTION";
$conn =new mysqli($servername, $username, $password,$database);
echo "EXECUTED CONNECTION";
lub może to być
$con = mysqli_connect("localhost","my_user","my_password","my_db");