Location: PHPKode > projects > Basic Announce > Basic Announce Version 4.0/pages/logs.php
<?
////////////////////////////////////////////////////////////////////////////////
//////////////////Statistitical Logger By Harry Smith///////////////////////////
//////////////////////////DONT EDIT THIS FILE///////////////////////////////////
///////////// COPYRIGHTED TO Bull Web Host Hosting Services And Harry Smith ////
////////////////////////////////////////////////////////////////////////////////
?>
<?php
require'../inc/config.inc.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>WEBSITE NAME Statistics</title><?// REPLACE WEBSITE NAME WITH YOUR SITE NAME?>

<style type="text/css">
/*<![CDATA[*/
 span.c1 {font-family: Arial, Helvetica, sans-serif}
/*]]>*/
</style>
</head>
<body>
<?php
mysql_connect("$server","$usr","$pswd") or die(mysql_error());

mysql_select_db("$db") or die(mysql_error());
$query="SELECT * FROM stats"; //LEAVE AS IS AND RUN THE SQL DUMP TO ADD DB TABLE
$result=mysql_query($query);

$num=mysql_numrows($result);

mysql_close();
?>
<table border="0" cellspacing="2" cellpadding="2">
<tr>
<th><span class="c1">ID:</span></th>
<th><span class="c1">Date:</span></th>
<th><span class="c1">Browser:</span></th>
<th><span class="c1">Page:</span></th>
<th><span class="c1">IP:</span></th>
<th><span class="c1">Host:</span></th>
<th><span class="c1">WHOIS:</span></th>
</tr>
<?php
$i=0;
while ($i < $num) {

$f1=mysql_result($result,$i,"id");
$f2=mysql_result($result,$i,"recieved");
$f3=mysql_result($result,$i,"browser");
$f4=mysql_result($result,$i,"page");
$f5=mysql_result($result,$i,"ip");
$f6=mysql_result($result,$i,"host");
?>
<tr>
<td><span class="c1"><?php echo $f1; ?></span></td>
<td><span class="c1"><?php echo $f2; ?></span></td>
<td><span class="c1"><?php echo $f3; ?></span></td>
<td><span class="c1"><?php echo $f4; ?></span></td>
<td><span class="c1"><?php echo $f5; ?></span></td>
<td><span class="c1"><?php echo $f6; ?></span></td>
<td><a href="http://whois.domaintools.com/<?print $f5 ?>"><span class="c1"><?php echo $f5; ?></span></a></td>
</tr>
<?php
$i++;
}
?></table>
</body>
</html>
Return current item: Basic Announce