Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5. <title>Scraper Dashboard</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7. <!--<link href="styles/main_style.css" rel="stylesheet" type="text/css">-->
  8.  
  9. <?php
  10. //Database configuratie
  11. $host = 'localhost';
  12. $db = 'postgres';
  13. $username = 'postgres';
  14. $password = 'postgres';
  15.  
  16. //Database connectie
  17. $dsn = "pgsql:host=$host;port=5432;dbname=$db;user=$username;password=$password";
  18.  
  19. try {
  20. $conn = new PDO($dsn);
  21. if ($conn) {
  22. echo "Connected to the PostgreSQL database using PDO";
  23. }
  24. } catch (PDOException $e) {
  25. echo $e->getMessage();
  26. }
  27. ?>
  28. </head>
  29.  
  30. <body>
  31.  
  32. <header>
  33. </header>
  34.  
  35. </body>
  36.  
  37. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement