source: schedule/Transaction/update.php@ 17447

Last change on this file since 17447 was 17447, checked in by tose, 11 years ago
File size: 960 bytes
Line 
1 <?php
2//connect to the mysql
3$db = mysql_connect("localhost","scheduletest","t3stsched");
4mysql_select_db('sandboxschedule', $db) or die("Could not select database");
5
6
7 $GTimes=$_POST['GTime'];
8 $Source=$_POST['Source'];
9 $measure=$_POST['measure'];
10 $data=$_POST['Data'];
11 $Gdates = $_POST['GDate'];
12 $seq = $_POST['seq'];
13
14 $date = new DateTime($Gdates.$GTimes);
15 $par=$date->format('Y-m-d H:i:s');
16 //$UpdateDate=(date('Y-m-d H:i:s'));
17
18 $days = Date('Y-m-d',strtotime($Gdates));
19 $cnt = 0;
20 mysql_query("INSERT INTO schedule VALUES('null','2014-01-17 16:33:14','2014-01-03 16:33:14','".$seq."','','".$data."','".$Source."','".$measure."')");
21
22 //mysql_query("INSERT INTO schedule VALUES('null','".$par."','".$UpdateDate."','".$seq."','','".$data."','".$Source."','".$measure."')");
23 //mysql_query("INSERT INTO schedule VALUES('null','".$par."','".$part."','".$seq."','','".$data."','".$Source."','".$measure."')");
24?>
Note: See TracBrowser for help on using the repository browser.