anchor.diff:  	   	 String trclose = "</tr>";
       while (rsetS.next()) {
   
  -
  +	//Displays the data
           Integer did = new Integer(rsetS.getInt(1));
           Integer sid = new Integer(rsetS.getInt(2));
           java.sql.Date date = rsetS.getDate(3);
  
positive.code: 	   queryScalar = queryScalar + " AND s.date_created >= TO_DATE('"+dateAfter+"','dd/mm/yyyy HH24:MI:SS')";
  
  	   //querySensor = querySensor + " AND sen.date_created >= TO_DATE('"+dateAfter+"','dd/mm/yyyy')";
  
  
  	} 
  	%><br><%	
  	//Currently have redudent search conditions if multiple search conditions.
  	//String queryAudio = "SELECT Distinct a.recording_id, a.sensor_id, a.date_created, a.length, a.description FROM sensors sen, audio_recordings a, subscribed_sensors WHERE a.sensor_id in (select * from subscribed_sensors)" + sensorType + location+ dateBefore+dateAfter+keywords+ ";"; 
  
  	//This is the version that would allow multiple keywords. According to forum, exact string match is fine.
  	/*
  	if (!keywords.isEmpty()) {
  	//According to stackexhange, this will also collapse and trim whitespace.
  
negative.code: 	   //querySensor = querySensor + " AND sen.sensor_type = '"+sensorType+"'";
  
  	}
  	//Adds a check to make sure that the data's attached sensor has the required location.
  	if (location != null && !location.isEmpty()) {
  		%>location is <%= location%>, <%
  
  	   queryAudio = queryAudio + " AND sen.sensor_id = a.sensor_id AND sen.location = '"+ location+"'";
  	   queryImage = queryImage + " AND sen.sensor_id = i.sensor_id AND sen.location = '"+ location+"'";
  	   queryScalar = queryScalar + " AND sen.sensor_id = s.sensor_id AND sen.location = '"+ location+"'";
  