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

echo ("<h1>IP ".$_POST['ip']."</h1>");

$VL_query = "select page,referer,host,flag,browser,lang,time,date from ".$VL_table." where ip=\"".$_POST['ip']."\" 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>Host</th>
<th align=center>Flag</th>
<th align=center>Browser</th>
<th align=center>Lang</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 IP <?php echo $_POST['ip']." = ".$VL_hits."<br>"; ?></b></p>
Return current item: Visitor Logger