Advertisement
Guest User

Untitled

a guest
May 27th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2. // Information de connexion à la BDD
  3. // 'pgsql:host=LienDuHost; port=numeroPort; dbname=nom_database; user=utilisateur; password=mot_de_passe';
  4. // DSN = Date Source Name
  5.  
  6.  
  7. //$dsn = "mysql:host=localhost;port=3306;dbname=stage1;user=root";
  8. //$dsn = "pgsql:host=db5000078384.hosting-data.io;port=3306;dbname=db73017;user=dbu252833;password=BDD@ST@g1@1rE2019";
  9. // $conn = new PDO($dsn)
  10.  
  11. $conn = new PDO('mysql:host=db5000078384.hosting-data.io;port=3306;dbname=dbs73017','dbu252833','BDD@ST@g1@1rE2019');
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement