Following from the post below, i tested this script;
<?php
$ip = $REMOTE_ADDR;
$connect = MYSQL_CONNECT(localhost,gg,gg) or die ("could not connect");
MYSQL_SELECT_DB(hhh);
$query = "Insert into ip values('$ip')";
MYSQL_QUERY($query);
MYSQL_Close($connect);
print("Welcome $ip!");
?>
After i ran the script, i took a look in my winipcfg, and the ip in there was different from the one that appeared in my database? Anyone know why? Anyone know how to set it right?
Jonathan