View sourcecode

The following files exists in this folder. Click to view.

db.php

17 lines ASCII Unix (LF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
$dsn 
"mysql:host=server1.serverdrift.com;dbname=als060502sa_M06;charset=utf8mb4";
$user "Intentionally removed by CSource";
$pass "Chesterb3000"

try {
    
$pdo = new PDO($dsn$user$pass);
    
$pdo->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
} catch (
PDOException $e) {
    echo 
"<strong>PDO-fel:</strong> " $e->getMessage();
    exit;
}
//catch (PDOException $e) {
    //die("Kunde inte ansluta: " . $e->getMessage());
//}
?>