Location: PHPKode > scripts > Page Views > gsg_pv_statistics.php
<?php

include('gsg_pv_config.php');

echo "<h1>Page Views Statistics</h1><br><br>
<table width='100%' border='1'>
<tr>
<td><b>URL</b></td>
<td><b>Page Views</b></td>
</tr>";

$query = "SELECT * FROM gsg_pv_table";
$result = mysql_query($query);

while ($row = mysql_fetch_array( $result )) {

$url = $row['url'];
$views = $row['views'];

echo "<tr><td>" . $url . "</td><td><b>" . $views . "</b></td></tr>";

}

echo "</table>";

mysql_close($gsg_pv);

?>
Return current item: Page Views