<?php

$q = $db->super_query("SELECT COUNT(*) as count FROM diary");
$k_p = $q['count'];
$q = $db->super_query("SELECT COUNT(*) as count FROM diary WHERE time > '" . (time() - 86400) . "'");
$k_n = $q['count'];

if ($k_n == 0) {
    $k_n = NULL;
} else {
    $k_n = " +$k_n";
}
echo "$k_p$k_n";

unset($k_p);
unset($k_n);
