Advertisement
Guest User

connection.php

a guest
Apr 29th, 2019
161
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.  
  3. $dbServername = "localhost";
  4. $dbUsername = "root";
  5. $dbPassword = "";
  6. $dbName = "equipment";
  7.  
  8. $conn = mysqli_connect($dbServername, $dbUsername, $dbPassword, $dbName);
  9. //$connect = new PDO('mysql:host=localhost;dbname=filceb_database', 'root', '');
  10. //$connect = new PDO('mysql:host=localhost;dbname=filceb_db', 'filceb_user', 'E9t9neG9vX');
  11. $connect = new PDO('mysql:host=localhost;dbname=equipment', 'root', '');
  12.  
  13.  
  14. if (!$conn) {
  15. echo "Failed to connect to Database" . die(mysqli_error($conn));
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement