Author Topic: Today total hits  (Read 2173 times)

0 Members and 1 Guest are viewing this topic.

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Today total hits
« on: October 13, 2010, 03:53:49 PM »
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!