while ($row = mysql_fetch_array($Recordset2)) { $e_u_id = $row['e_u_id']; $or_id = $row['id']; $da = $row['date']; if ($or_id == $dis): else: $dis = $or_id; echo $e_u_id."|".$or_id."|".$da."
"; endif; echo ""; } //echo "[".$dis."]";