You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
576 B

<?php
$DB_HOST = "83.212.77.22";
$DB_NAME = "covid_19_db";
$DB_USER = "root";
$DB_PASSWORD = "";
$CHARSET = 'utf8';
try{
$conn = new PDO("mysql:host=$DB_HOST;port=3306;dbname=$DB_NAME;charset=$CHARSET", $DB_USER, $DB_PASSWORD);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // To turn on error mode for debugging errors
$conn->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); // To get maximum sql injection protection
// echo "Connected successfully";
}
catch(PDOException $e){
echo "Connection failed: " . $e->getMessage();
}
?>