Location: PHPKode > scripts > Visitor Logger > browsers.txt
<?php

if ($_POST['browsers'] == "Bots") $VL_bots = "Other Search Bots";
else $VL_bots = $_POST['browsers']."s";
echo ("<h1>".$VL_bots."</h1>");

$VL_query = "select page,referer,flag,host,ip,time,date from ".$VL_table." where browser=\"".$_POST['browsers']."\" order by concat(date,',',time) desc";
$VL_result = mysql_query($VL_query,$VL_conn);

$VL_hits = 0;
$VL_bgcolour = "white";
?>
&nbsp;
<table align=center width=100% border=0 bgcolor=#0000c2 style="font-size: 12px; color: white">
<tr>
<th align=center>Page</th>
<th align=center>Referer</th>
<th align=center>Flag</th>
<th align=center>Host</th>
<th align=center>IP Address</th>
<th align=center>Time</th>
<th align=center>Date</th>
</tr>

<?php

while ($VL_row = mysql_fetch_array($VL_result, MYSQL_ASSOC)) {
	$VL_hits ++;
	echo ("<tr bgcolor=\"".$VL_bgcolour."\" style=\"color: black\">");
	if ($VL_bgcolour == "white") $VL_bgcolour = "#e0ecff"; else $VL_bgcolour = "white";
	foreach ($VL_row as $VL_value) {
	echo ("<td align=center>".$VL_value."</td>");
	}
	echo ("</tr>");
}

?>

</table>

<p><b>Total hits from <?php echo $VL_bots." = ".$VL_hits."<br>"; ?></b></p>
Return current item: Visitor Logger