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() );
}
?>
| date | times |
".$nodupesEntry['date']." | ".$nodupesEntry['anz']." | " );
?>
|
| Seite | times |
".$uniqueHitsEntry['pageid']." | ".$uniqueHitsEntry['hitcount']." | " );
?>
|
| timeStamp | pageId | userHash |
".$pagehitsEntry['timeStamp']." | ".$pagehitsEntry['pageId']." | ".substr($pagehitsEntry['userHash'], 0, 5)."... | " );
?>
|