mirror of
https://github.com/Floriansylvain/projet_programmation_web.git
synced 2026-08-19 19:53:18 +02:00
15 lines
254 B
PHP
15 lines
254 B
PHP
<?php
|
|
|
|
class conf
|
|
{
|
|
private pdo $pdo;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->pdo = new PDO('mysql:host=localhost;dbname=projet_prog_web', 'root', 'root');
|
|
}
|
|
|
|
public function getPDO() : pdo {
|
|
return $this->pdo;
|
|
}
|
|
} |