Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Scraper Dashboard</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <!--<link href="styles/main_style.css" rel="stylesheet" type="text/css">-->
- <?php
- //Database configuratie
- $host = 'localhost';
- $db = 'postgres';
- $username = 'postgres';
- $password = 'postgres';
- //Database connectie
- $dsn = "pgsql:host=$host;port=5432;dbname=$db;user=$username;password=$password";
- try {
- $conn = new PDO($dsn);
- if ($conn) {
- echo "Connected to the PostgreSQL database using PDO";
- }
- } catch (PDOException $e) {
- echo $e->getMessage();
- }
- ?>
- </head>
- <body>
- <header>
- </header>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement