1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
PHP_TP_Note/models/m_accueil.php

14 lines
284 B
PHP
Raw Normal View History

2020-11-13 08:50:55 +01:00
<?php
require_once("lib/getPDD.php");
$bdd = getPDO();
if ($bdd instanceof PDO) {
$req = $bdd->prepare("SELECT * FROM Sondage");
$req->execute();
$polls = $req->fetchAll();
$req->closeCursor();
} elseif ($bdd instanceof Exception)
$alert = choixAlert("query");