hi I had a web site made in php. I need to collect visitor data ( ip address, visiting time) and store in it a database. I wrote the code like this
date_default_timezone_set('Asia/Calcutta'); $time= date('D,F j, Y, H:i:s A'); $ip=getenv("REMOTE_ADDR"); mysql_query("INSERT into visitordetails (ip,time) VALUES ('$ip','$time')") or die(mysql_error());
and this is works perfectly for me.. Let me know am i need to do anything more in it ????