Hi! does anyone know how to capture ip address of visitors? Well! I have used the following code but , it' s not working in this server.
<?php
$ip=$_SERVER['REMOTE_ADDR'];
mysql_query("INSERT INTO table (count,ipaddress)
VALUES ('null', '$ip')");
?>
Note: Database is well connected and the above tables are properly established :dunno:
<?php
$ip=$_SERVER['REMOTE_ADDR'];
mysql_query("INSERT INTO table (count,ipaddress)
VALUES ('null', '$ip')");
?>
Note: Database is well connected and the above tables are properly established :dunno: