<?php
    session_start();

    $servername = "localhost";
    $username = "root";
    $password = "";
    $dbname = "cms_db";

    // Create connection
    $conn = new mysqli($servername, $username, $password, $dbname);
    // Check connection
    if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
    }else{
        // echo "$dbname is connected successfully"; 
    }