anchor.diff:  //DONE on my end. Need to edit html side:  dd/mm/yyyy. 
   //DONE: keyword should be exact match.
   //TODO: Ask TA if the user needs to be able to search by hour,min,second. If so, implement that.
  -//TODO: Apparently Sensor type must have a time period.
  -//TODO: Select blob columns.
  +//DONE?: Apparently Sensor type must have a time period.
  +//DONE: Select blob columns.
   //DONE: "If the keyword matches the sensor description, show all data from this sensor. 
  -//If not (in case of audio files and images), try if it matches the image or audio description 
  -//and show those records which match."
  +//If not (in case of audio files and images), try if it matches the image or audio description.
  +//and show those records which match." I can't simply search sensor because sensor doesn't have a date created. Therefore, if I use a "or" statement there, time doesn't matter.
   //DONE in a sense. Need to handle it website side as well: Error catching. A common offender will be if they input date off format.
   //TODO: Testing Website side.
           Boolean debug = Boolean.TRUE;
  
positive.code: 
  
  	//Now, check to see if even if the individual data doesn't match the search, does its sensor?
  	queryAudio = queryAudio + ") OR (a.sensor_id IN " +querySensor+"))";
  	queryImage = queryImage + ") OR (i.sensor_id IN " +querySensor+"))";
  	queryScalar = queryScalar + ") OR (s.sensor_id IN " +querySensor+"))";
  
  	
        String mUrl = "jdbc:oracle:thin:@gwynne.cs.ualberta.ca:1521:CRS";
  
negative.code: */	
  	//Version 2. Goes through subscriptions itself.
  	//Had to insert brackets before the WHERE, and around query sensor.
  	//Had to remove these brackets.
  	String queryAudio = "SELECT Distinct a.recording_id, a.sensor_id, a.date_created, a.length, a.description FROM sensors sen, audio_recordings a WHERE a.sensor_id in (SELECT sensor_id FROM subscriptions WHERE person_id = "+pid+")";
  	String queryImage = "SELECT Distinct i.image_id, i.sensor_id, i.date_created, i.description FROM sensors sen, images i WHERE i.sensor_id in (SELECT sensor_id FROM subscriptions WHERE person_id = "+pid+")";
  	String queryScalar = "SELECT Distinct s.id, s.sensor_id, s.date_created, s.value FROM sensors sen, scalar_data s WHERE s.sensor_id in (SELECT sensor_id FROM subscriptions WHERE person_id = "+pid+")";
  
  	//Check if the associated sensor is found as well. 
  	//String querySensor = "(SELECT Distinct sen.sensor_id FROM sensors sen WHERE sen.sensor_ID IN (SELECT sensor_id FROM subscriptions WHERE person_id = "+pid+")";
  
   
  
  