Delta Between Two Patch Sets: DB/config.php
Left Patch Set: Fixing last bug
Right Patch Set: DB
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
LEFT | RIGHT |
(no file at all) | |
1 <?php | 1 <?php |
2 //ini_set('display_errors', 1); | 2 //Connect to the VM database through a PDO request |
3 | |
4 try | 3 try |
5 { | 4 { |
6 $bdd = new PDO('mysql:host=localhost;dbname=SDN_Data;charset=utf8', 'roo
t', 'sdn2017'); | 5 $bdd = new PDO('mysql:host=localhost;dbname=SDN_Data;charset=utf8', 'roo
t', 'sdn2017'); |
7 } | 6 } |
8 catch (Exception $e) | 7 catch (Exception $e) |
9 { | 8 { |
10 die('Erreur : ' . $e->getMessage()); | 9 die('Erreur : ' . $e->getMessage()); |
11 } | 10 } |
12 | 11 |
13 ?> | 12 ?> |
14 | 13 |
15 | 14 |
LEFT | RIGHT |