<?
$sql = dbquery("SELECT user_id, user_name FROM ".$db_prefix."users WHERE user_ip='".$data['user_ip']."' AND user_id != '".$data['user_id']."'");
while ($ip_data = dbarray($sql)) {
echo "ID".$ip_data['user_id']." ".$ip_data['user_name'];
}
?>