本文整理匯總了PHP中BD::count方法的典型用法代碼示例。如果您正苦於以下問題:PHP BD::count方法的具體用法?PHP BD::count怎麽用?PHP BD::count使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BD
的用法示例。
在下文中一共展示了BD::count方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: recupNbCom
function recupNbCom($idnews)
{
$BD = new BD('commentaire');
return $BD->count('idnews', $idnews);
}
示例2: BD
<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: countVehicule
function countVehicule($id)
{
$BD = new BD('vehicule');
$res = $BD->count("iduser", $id);
return $res;
}
示例4: countUserTrajet
function countUserTrajet($idtrajet)
{
$BD = new BD('effectue');
return $BD->count("idtrajet", $idtrajet);
}