Ignore:
Timestamp:
01/03/14 15:49:04 (11 years ago)
Author:
tose
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • schedule/Transaction/delete.php

    r17429 r17441  
    66               
    77                //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)){               
    1210                        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 + "'");
    1513?>
Note: See TracChangeset for help on using the changeset viewer.