Changeset View
Changeset View
Standalone View
Standalone View
fundraisers/yearend2017/config.php.dist
1 | <?php | 1 | <?php | ||
---|---|---|---|---|---|
2 | $currency = 'EUR'; | 2 | $currency = 'EUR'; | ||
3 | $kdeEvMail = "kde-ev-board@kde.org"; | 3 | $kdeEvMail = "kde-ev-board@kde.org"; | ||
4 | $dbhost = '127.0.0.1'; | 4 | $dbhost = '127.0.0.1'; | ||
5 | $dbuser = 'root'; | 5 | $dbuser = 'root'; | ||
6 | $dbpass = 'root'; | 6 | $dbpass = 'root'; | ||
7 | $dbname = 'endofyear'; | 7 | $dbname = 'endofyear'; | ||
8 | $dbConnection = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname) or die (mysqli_connect_error()); | 8 | try { | ||
9 | $dbConnection = new PDO('mysql:host=' . $dbhost . ';dbname=' . $dbname, $dbuser, $dbpass); | ||||
10 | } catch (PDOException $e) { | ||||
11 | print "Error!: " . $e->getMessage() . "<br/>"; | ||||
12 | die(); | ||||
13 | } | ||||
9 | 14 | | |||
10 | ?> | 15 | ?> |