I'm php begginer and i'm trying to connect database using XAMPP. When i open my file there is not any error about connecting to database, but also there isn't "Connected successfully"; text, there is just blank page.
This is my code:
<html>
<head>
  <title></title>
</head>
<body>
    <?php
    $servername = "localhost";
    $username = "root";
    $password = "lala2";
    // Create connection
    $conn = mysqli_connect($servername, $username, $password);
    // Check connection
    if (!$conn) {
        die("Connection failed: " . mysqli_connect_error());
    }
    echo "Connected successfully";
    mysqli_close($conn); 
    ?> 
    </body>
    </html>