Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $host = "kark.hin.no";
- $dbname = "stud_v16_larseng";
- $username = "v16_larseng";
- $password = "***";
- $dbs = "mysql";
- $dsn = "$dbs:host=$host;dbname=$dbname";
- try {
- $db = new PDO($dsn, $username, $password);
- } catch (PDOException $e) {
- print($e->getMessage());
- }
Add Comment
Please, Sign In to add comment