Changeset 17441 for schedule/Transaction
- Timestamp:
- 01/03/14 15:49:04 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Transaction/delete.php
r17429 r17441 6 6 7 7 //QUERY TO DELETE THE TABLE INSIDE THE DATABASE 8 $fetch = mysql_query("SELECT * FROM schedule WHERE date(fStart)='$days'") or die(mysql_error()); 9 while($rows = mysql_fetch_array($fetch)){ 10 //$update=mysql_query("UPDATE schedule SET `fStart`='$par',`fLastUpdate`='$UpdateDate',`fMeasurementID`='$seq',`fData`='$data',`fSourceKey`='$Source',`fMeasurementTypeKey`='$measure' WHERE fScheduleID = '".$rows['fSchecduleID']."' "); 11 8 /*$fetch = mysql_query("SELECT * FROM schedule WHERE date(fStart)='$days'") or die(mysql_error()); 9 while($rows = mysql_fetch_array($fetch)){ 12 10 mysql_query("DELETE FROM schedule WHERE `fStart`='".$rows['fStart']."'"); 13 //mysql_query("INSERT INTO schedule VALUES('null','".$par."','".$UpdateDate."','".$seq."','','".$data."','".$Source."','".$measure."')");14 }11 } */ 12 mysql_query("DELETE FROM schedule WHERE DATE(fStart)= '" + $days + "'"); 15 13 ?>
Note:
See TracChangeset
for help on using the changeset viewer.