<?php $ipAdresi = $_SERVER["REMOTE_ADDR"]; $ekle = $db->prepare("inser into tablo set ip=?"); $ok = $ekle->execute(array($ipAdresi)); ?>