$insert = "INSERT INTO ipes(ips) values($ip)"; echo $insert; mysql_query($insert)or die (mysql_error());