PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
$conn = mysql_connect ("localhost", "***", "***");
mysql_select_db ("***",$conn);
$refferer = $HTTP_REFERER;
$thetime = date("l dS F Y h:i:s A");
$ip = $_SERVERї'REMOTE_ADDR'];
$browser = $HTTP_USER_AGENT;
$whatpage = $_SERVERї'REQUEST_URI'];
$sql1 = "INSERT INTO sitestats VALUES ('', '$refferer', '$thetime', '$ip', '$browser', '$whatpage')";
$result = mysql_query($sql1,$conn) or die(mysql_error());
$sql = "UPDATE counter SET counth = counth + 1 WHERE section = 'forum'";
$result = mysql_query($sql,$conn) or die(mysql_error());
?>
However when i view my stats (using top code) I want all entries that start with http://www.d-frame.co.uk to be hidden. How would I do this? (But I still want them logged in the database fully).