Good evening...
Is it possible to set time in this code, that to show today total hits?
$sql = "SELECT SUM(image_hits) AS summ
FROM ".IMAGES_TABLE;
$row = $site_db->query_firstrow($sql);
4.
$sum = (isset($row['summ'])) ? $row['summ'] : 0;
$total_hits_today = "<B> ".$row['summ']."</B>\n";
$site_template->register_vars("total_hits_today", $total_hits_today);
unset($total_hits_today);
I think, that we need to add a new field to the DB?
May anyone help me with this? Many thanks!