Changeset 868 for trunk/admin
- Timestamp:
- Sep 18, 2005, 11:56:56 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/stats.php
r775 r868 81 81 if (isset($_GET['month']) && isset($_GET['year']) ) 82 82 { 83 $where_clause = "DATE_FORMAT(date,'%Y-%m-%d') = '".$row['d']."'"; 84 $value = substr($row['d'],8,2); 83 $where_clause = 'DAYOFMONTH(date) = '.$row['d'].' 84 AND MONTH(date) = '.$row['m'].' 85 AND YEAR(date) = '.$row['y']; 86 $week_day = $lang['day'][date('w', mktime(12,0,0,$row['m'],$row['d'],$row['y']))]; 87 $value = $row['d'].' ('.$week_day.')'; 85 88 } 86 89 else … … 98 101 // Number of pictures seen 99 102 $query = ' 100 SELECT COUNT(*) as p, 101 FILE as f 103 SELECT COUNT(*) as p 102 104 FROM '.HISTORY_TABLE.' 103 105 WHERE '.$where_clause.' 104 106 AND FILE = \'picture\' 105 GROUP BY FILE106 107 ;'; 107 108 $pictures = mysql_fetch_array(pwg_query( $query ));
Note: See TracChangeset
for help on using the changeset viewer.