<?php for ($i=0; $i < $rows; $i++) { $iptable[i]=$data->adresip;} $ip= $_SERVER['REMOTE_ADDR']; } else { $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];} foreach ($iptable as $key) { if ($key==$ip) { }}}else{ $_SESSION['views']=$_SESSION['views']+1;} else {$_SESSION['views']=1;} $sql="INSERT INTO adresyip (adresip)"."VALUES('INET_ATON('$ip')')"; ?>