5 changed files with 18 additions and 13 deletions
@ -1,6 +1,6 @@
|
||||
<?php |
||||
require(basename(__FILE__) . "/config.php"); |
||||
require(dirname(__FILE__) . "/config.php"); |
||||
|
||||
$pdo_options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION; |
||||
$bdd = new PDO("mysql:host='.$hote.';port='.$port.';dbname='.$bd, $utilisateur, $mdp, $options); |
||||
$options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION; |
||||
$bdd = new PDO("mysql:host=$hote;port=$port;dbname=$bd", $utilisateur, $mdp, $options); |
||||
?> |
||||
|
Loading…
Reference in new issue