üstte çektik ip leri diyelim

$ip olsun diyelim forech dönügüsü içinde olsun

SELECT DISTINCT username FROM kullanicilar WHERE ip='$ip'