This is close to what I want to do, but I only want to show the results of one of the pages visited.
I want to replace the * with "page1.php" but it gives me an array error.
Any Ideas?
<?
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "SELECT page_visited, COUNT(*) as numArticles FROM site_stats GROUP BY page_visited ORDER BY page_visited ASC";
$results=mysql_query($query);
mysql_close();
$i=0;
while ($row = mysql_fetch_array($results)) {
echo "
$row[numArticles]<br> ";
++$i;
}
?>