Advertisement
Guest User

config.php

a guest
Sep 7th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2.  
  3. $servername = "localhost";/*non so che cazzo scrivere
  4. $username = "stzullo_dbu";
  5. $password = "jFdvnGpb17tu7p9z";
  6. $dbname = "stzullo_dbd";
  7.  
  8. try {
  9. $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
  10. $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  11. }
  12. catch(PDOException $e)
  13. {
  14. die("OOPs something went wrong");
  15. }
  16.  
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement