brotherhood_of_LAN - 4:50 pm on Jun 7, 2013 (gmt 0)
Welcome to the forums iWareWolf,
I take it you were testing within Apache and not the command line?
You seem to be calling $ip = getIp(); after evaluating $_SERVER['REMOTE_ADDR'] and the other variables. Does that function exist and is it returning the data you expect?
$ip = getIp();
after you've populated the variable to ensure the data is as expected.
Also alter the last query to
mysql_query("INSERT INTO information VALUES ('INET6_ATON($ip)','0')") or die(mysql_error());
and you'll see if it's the query causing the problem. Also, the function INET6_ATON shouldn't have quotes around it.