
- /bdd/notehub.sql - /doc/cahierdescharges.pdf - /html/notes.php - /html/profil.php - /html/register.php - /html/style.css - /html/addcas.php - /html/admin.php - /html/colormode.php - /html/data_usage.php - /html/devoirs.php - /html/favicon.ico - /html/index.php - /html/login.php - /html/logout.php - /html/main.js - /html/img/notehub1.png - /html/img/notehub2.png - /html/img/default_pp.jpg - /html/img/logo.png - /html/img/notehub.png - /html/img/notehub0.png - /include/connect.php - /include/functions.php - /include/config.php - /log/notehub.log
11 lines
275 B
PHP
11 lines
275 B
PHP
<?php
|
|
$dsn = "mysql:host=127.0.0.1;dbname=notehub";
|
|
$username = "root";
|
|
$options = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION);
|
|
|
|
try {
|
|
$pdo = new PDO($dsn, $username, $dbpass, $options);
|
|
} catch (PDOException $e) {
|
|
die("Erreur BDD : " . $e->getMessage());
|
|
}
|
|
?>
|