$sql = "SELECT * FROM uyeler where uye_ip='".$_SERVER['REMOTE_ADDR']."'";
$query = mysqli_query($conn,$sql);
$numrows = mysqli_num_rows($query);
if($numrows <= 0) {
........
}