6 changed files with 20 additions and 11 deletions
@ -0,0 +1,7 @@ |
|||||||
|
<?php |
||||||
|
$hote='localhost'; |
||||||
|
$port='3306'; |
||||||
|
$bd='vpn'; |
||||||
|
$utilisateur='user'; |
||||||
|
$mdp="password"; |
||||||
|
?> |
@ -0,0 +1,6 @@ |
|||||||
|
<?php |
||||||
|
require(basename(__FILE__) . "/config.php"); |
||||||
|
|
||||||
|
$pdo_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