Ajout de CI et update depuis la prod
Some checks failed
Déploiement DEV / deploy (push) Failing after 13s
Some checks failed
Déploiement DEV / deploy (push) Failing after 13s
This commit is contained in:
12
modele/evenement.php
Normal file
12
modele/evenement.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
function get_events()
|
||||
{
|
||||
global $bdd;
|
||||
|
||||
$req = $bdd->prepare('SELECT * FROM Event WHERE dateevent > TO_DAYS(NOW()) AND idtype <> 1 ORDER BY dateevent ASC');
|
||||
$req->execute();
|
||||
$eventsAll = $req->fetchAll();
|
||||
|
||||
|
||||
return $eventsAll;
|
||||
}
|
||||
Reference in New Issue
Block a user