prepare( "SELECT COUNT(*) AS anz, DATE(FROM_UNIXTIME( time )) as date FROM `phpcount_nodupes` GROUP BY date ORDER BY date DESC" ); $nodupesQuery->execute(); $nodupesList = $nodupesQuery->fetchAll(PDO::FETCH_ASSOC); $uniqueHitsQuery = $dbConnection->prepare( "SELECT pageid, hitcount FROM `phpcount_hits` WHERE isunique=1 ORDER BY hitcount DESC" ); $uniqueHitsQuery->execute(); $uniqueHitsList = $uniqueHitsQuery->fetchAll(PDO::FETCH_ASSOC); $pagehitsQuery = $dbConnection->prepare( "SELECT timeStamp, pageId, userHash FROM `phpcount_pageHits` ORDER BY timeStamp DESC;" ); $pagehitsQuery->execute(); $pagehitsList = $pagehitsQuery->fetchAll(PDO::FETCH_ASSOC); } catch(PDOException $db_error){ die( "Error!: " . $db_error->getMessage() ); } ?> " ); ?>
datetimes
".$nodupesEntry['date']."".$nodupesEntry['anz']."
" ); ?>
Seitetimes
".$uniqueHitsEntry['pageid']."".$uniqueHitsEntry['hitcount']."
" ); ?>
timeStamppageIduserHash
".$pagehitsEntry['timeStamp']."".$pagehitsEntry['pageId']."".substr($pagehitsEntry['userHash'], 0, 5)."...