Файл: forum/chet.php
Строк: 14
<?php
$countmess = $db -> dbcount('COUNT(`id`)','forum_posts');
$countthem = $db -> dbcount('COUNT(`id`)','forum_tems');
$result = $db -> query("SELECT `time` FROM `forum_posts`");
while($a = $result -> fetch_assoc()){
if (strftime("%d.%m.%Y",$a['time']) == date("d.m.Y"))
$c++;
}
if($c>0){
$cb= '+'.$c.'';}
$result2 = $db -> query("SELECT `time` FROM `forum_tems`");
while($a2 = $result2 -> fetch_assoc()){
if (strftime("%d.%m.%Y",$a2['time']) == date("d.m.Y"))
$c2++;
}
if($c2>0){
$ct= '+'.$c2.'';}
echo '<span class="count">'.$countthem.'<span class="chet">'.$ct.'</span>/'.$countmess.'<span class="chet">'.$cb.'</span></span></a>';
?>