예제 #1
0
파일: section.php 프로젝트: sebspas/AFK-WEB
function recupNbCom($idnews)
{
    $BD = new BD('commentaire');
    return $BD->count('idnews', $idnews);
}
예제 #2
0
파일: footer.php 프로젝트: sebspas/AFK-WEB
				<div class="g3"></div>
				<div class="cols1"> 
					<div class="circle white registered">
						<span class="circle-span txt-center"><strong class="c-blue3">
						<?php 
$BD = new BD('user');
echo $BD->countAll();
?>
						</strong> Inscrit(s)</span>
					</div>
				</div>	
				<div class="g1"></div>
				<div class="cols1"> 
					<div class="circle white">
						<span class="circle-span txt-center"><strong class="c-red2"><?php 
echo $BD->count('online', 1);
?>
</strong> Connecté(s)</span>
					</div>
				</div>
				<div class="g1"></div>
				<div class="cols1"> 
					<div class="circle white">
						<span class="circle-span txt-center"><strong class="c-green2"><?php 
$BD->setUsedTable('event');
echo $BD->countAll();
?>
</strong> Event(s)</span>
					</div>
				</div>
			</div>
예제 #3
0
function countVehicule($id)
{
    $BD = new BD('vehicule');
    $res = $BD->count("iduser", $id);
    return $res;
}
예제 #4
0
파일: profil.php 프로젝트: sebspas/Share2Go
function countUserTrajet($idtrajet)
{
    $BD = new BD('effectue');
    return $BD->count("idtrajet", $idtrajet);
}