<?php


//Datenbankverbindung
$dbhost = "mysql2fda.netcup.net";
$dbuser = "k25330_pracreutz";
$dbpassword = "be4K8DSASDA2y";
$dbname = "k25330_pracreutz";

// SQL Datum festlegen
$sqltoday = date("Y-m-d");
#$sqlyesterday = date("Y-m-d", strtotime("-1 day", $sqltoday ));
#$yesterday = Date('Y-m-d', strtotime('-1 day'));
#$yesteryesterday = Date('Y-m-d', strtotime('-2 days'));

$options = [
    PDO::ATTR_ERRMODE            => PDO::ERRMODE_EXCEPTION,
    PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
    PDO::ATTR_EMULATE_PREPARES   => false,
];


$pdo = new PDO("mysql:host=$dbhost;dbname=$dbname", $dbuser, $dbpassword, $options);


#$conn = new mysqli($dbhost,$dbuser,$dbpassword,$dbname);		
?>