Files
CARIA/UserWebSite/modele/membre/espace.php
ccunatbrule e7568e24b8 WUI-CARIA1.1.0
Edit files for UserInterface
- Signin, Profil change
- Add fonctionnality Picture Resize
2023-02-12 15:06:08 +01:00

30 lines
1.1 KiB
PHP

<?php
function get_MemberCount()
{
global $bdd;
$TotalDesMembres = $bdd->query('SELECT COUNT(*) FROM Client')->fetchColumn();
return $TotalDesMembres;
}
function get_LastMember()
{
global $bdd;
$req = $bdd->query('SELECT pseudo, idclient FROM Client ORDER BY idclient DESC LIMIT 0, 1');
$data = $req->fetch();
return $data;
}
function get_allMember()
{
//NOT USE actually
global $bdd;
//Cette requête permet d'obtenir tout sur le forum
$req = $bdd->prepare('SELECT cat_id, cat_nom,forum_forum.forum_id, forum_name, forum_desc, forum_post, forum_topic, auth_view,
forum_topic.topic_id, forum_topic.topic_post, post_id, post_time, post_createur, membre_pseudo, membre_id FROM forum_categorie
LEFT JOIN forum_forum ON forum_categorie.cat_id = forum_forum.forum_cat_id
LEFT JOIN forum_post ON forum_post.post_id = forum_forum.forum_last_post_id
LEFT JOIN forum_topic ON forum_topic.topic_id = forum_post.topic_id
LEFT JOIN forum_membres ON forum_membres.membre_id = forum_post.post_createur
WHERE auth_view <= :lvl ORDER BY cat_ordre, forum_ordre DESC');
$req->bindValue(':lvl',$lvl,PDO::PARAM_INT);
$req->execute();
}