Advertisement
Guest User

Untitled

a guest
Feb 10th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. $dbServername = "localhost";
  2. $dbUsername = "root";
  3. $dbPassword = "";
  4. $dbName = "eventus";
  5.  
  6. $conn = mysqli_connect($dbServername, $dbUsername, $dbPassword, $dbName);
  7. //$connect = new PDO('mysql:host=localhost;dbname=filceb_database', 'root', '');
  8. //$connect = new PDO('mysql:host=localhost;dbname=filceb_db', 'filceb_user', 'E9t9neG9vX');
  9. $connect = new PDO('mysql:host=localhost;dbname=eventus', 'root', '');
  10.  
  11.  
  12. if (!$conn) {
  13. echo "Failed to connect to Database" . die(mysqli_error($conn));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement