Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2. session_start();
  3.  
  4. $title = "MCTop";
  5. $description = "The site to find your popular SMP needs!";
  6.  
  7. $mysql_host = "localhost";
  8. $mysql_database = "stonedms_toplist";
  9. $mysql_user = "stonedms_justin";
  10. $mysql_password = "******hidden******";
  11. $port = "3306";
  12.  
  13. $dsn = "mysql:host=$mysql_host;port=$port;dbname=$mysql_database;";
  14. try{
  15. $db = new PDO($dsn, $mysql_user, $mysql_password);
  16. } catch (PDOException $e){
  17. //do something here.. maybe die();
  18. }
  19.  
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement