- Timestamp:
- 05/23/13 22:57:10 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Transaction/insert.php
r16100 r16101 66 66 67 67 68 //$select = mysql_query("SELECT * FROM schedule WHERE fLastUpdate = '$parsed_date'");69 //if($select){70 //while($row = mysql_fetch_array($select)){68 $select = mysql_query("SELECT * FROM schedule WHERE fLastUpdate = '$parsed_date'"); 69 if($select){ 70 while($row = mysql_fetch_array($select)){ 71 71 72 72 73 //$new = $row['fMeasurementID'] + 1 ;73 $new = $row['fMeasurementID'] + 1 ; 74 74 75 75 76 76 77 //}78 //}else{77 } 78 }else{ 79 79 80 //$new = 0;80 $new = 0; 81 81 82 //}82 } 83 83 //echo $new."<br />"; 84 84 85 $insert = mysql_query("INSERT I NTO schedule values('','$parsed_date','$parsed_date','','','$n1','$selectf','$measuref')ON DUPLICATE KEY UPDATE fMeasurementID=fMeasurementID + 1") or die(mysql_error());85 $insert = mysql_query("INSERT IGNORE INTO schedule values('','$parsed_date','$parsed_date','$new','','$n1','$selectf','$measuref')") or die(mysql_error()); 86 86 87 87 }
Note:
See TracChangeset
for help on using the changeset viewer.