Index: schedule/Transaction/delete.php
===================================================================
--- schedule/Transaction/delete.php	(revision 17429)
+++ schedule/Transaction/delete.php	(revision 17429)
@@ -0,0 +1,15 @@
+<?php
+	$db = mysql_connect("localhost","scheduletest","t3stsched");
+	mysql_select_db('sandboxschedule', $db) or die("Could not select database");
+		$Gdates = $_POST['Gdate'];
+		$days = Date('Y-m-d',strtotime($Gdates));
+		
+		//QUERY TO DELETE THE TABLE INSIDE THE DATABASE
+		$fetch = mysql_query("SELECT * FROM schedule WHERE date(fStart)='$days'") or die(mysql_error());			
+		while($rows = mysql_fetch_array($fetch)){
+			//$update=mysql_query("UPDATE schedule SET `fStart`='$par',`fLastUpdate`='$UpdateDate',`fMeasurementID`='$seq',`fData`='$data',`fSourceKey`='$Source',`fMeasurementTypeKey`='$measure' WHERE fScheduleID = '".$rows['fSchecduleID']."' ");
+			
+			mysql_query("DELETE FROM schedule WHERE `fStart`='".$rows['fStart']."'");
+			//mysql_query("INSERT INTO schedule VALUES('null','".$par."','".$UpdateDate."','".$seq."','','".$data."','".$Source."','".$measure."')");
+		}	
+?>
Index: schedule/Transaction/measurement.php
===================================================================
--- schedule/Transaction/measurement.php	(revision 17429)
+++ schedule/Transaction/measurement.php	(revision 17429)
@@ -0,0 +1,16 @@
+<?php
+//connect to the mysql
+$db = mysql_connect("localhost","scheduletest","t3stsched");
+mysql_select_db('sandboxschedule', $db) or die("Could not select database");
+
+//database query
+$sql = @mysql_query("select*from measurement");
+
+$rows = array();
+while($r = mysql_fetch_assoc($sql)) {
+  $rows[] = $r;
+}
+
+//echo result as json
+echo json_encode($rows);
+?>
Index: schedule/Transaction/source.php
===================================================================
--- schedule/Transaction/source.php	(revision 17429)
+++ schedule/Transaction/source.php	(revision 17429)
@@ -0,0 +1,16 @@
+<?php
+//connect to the mysql
+$db = mysql_connect("localhost","scheduletest","t3stsched");
+mysql_select_db('sandboxschedule', $db) or die("Could not select database");
+
+//database query
+$sql = @mysql_query("select*from source");
+
+$rows = array();
+while($r = mysql_fetch_assoc($sql)) {
+  $rows[] = $r;
+}
+
+//echo result as json
+echo json_encode($rows);
+?>
