<?php
// Change Web URL https://domain.com or https://sud.domain.com  with No Ending splash "/"
define("WEB_URL","https://clientdashboardbin.com"); 

// Do not Edit
$web_url = WEB_URL;
// Do not Edit


// Set database Below
function dbConnect(){
    $servername = "localhost";
    //Change Database Username "root"
    $username = "clientdashboardb_main"; 
    //Change Database Password ""
    $password = "Nairamate@2";
    //Change Database ""
    $database = "clientdashboardb_main";
    //Do not edit... That's all
    $dns = "mysql:host=$servername;dbname=$database";

    try {
        $conn = new PDO($dns, $username, $password);
        // set the PDO error mode to exception
        $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        return $conn;
    } catch(PDOException $e) {
        echo "Connection failed: " . $e->getMessage();
    }
}
//return dbConnect();

function inputValidation($value): string
{
    return trim(htmlspecialchars(htmlentities($value)));
}