PDA

View Full Version : Afflic Script



ardnat
January 16th, 2006, 16:57
Any one have a Afflic Script so i can track if someone comes to my page by going www.mypage.com/index.php?id=2312312
and it logs that

help :)

stuffradio
January 17th, 2006, 00:38
simple to do just do something like


<?php
include("config.php");
$ip = $_SERVER['REMOTE_ADDR'];
$page = "pagename";

mysql_query("INSERT INTO log (page, ip) VALUES ('$page', '$ip')");
?>
config.php


<?php
mysql_connect("localhost", "username", "password");
mysql_select_db("dbnamehere");
?>