MAJ V1.1
MAJ contenue et vérification HTML et CSS en cours
This commit is contained in:
12
modele/evenement/model_class.php
Normal file
12
modele/evenement/model_class.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