source: schedule/Transaction/insert.php@ 15686

Last change on this file since 15686 was 15686, checked in by tanio, 12 years ago
File size: 1.0 KB
Line 
1<?php
2 $Time =$_GET['Time'];
3 $SelectedSource = $_GET['Source'];
4 $Date = $_GET['Date'];
5 $SelectedMeasure = $_GET['measure'];
6$TimeEX = explode("-",$Date);
7//if($limtex){}
8echo $TimeEX2 = "day=".$TimeEX[0]."&month=".$TimeEX[1]."&year=".$TimeEX[2];
9echo $limtex = count(explode(",",$SelectedSource));
10$value = $_GET['Data'];
11
12
13$date = $_GET['Date'];
14$n_value = explode(",",$value);
15//$n_var2 = explode(",",$var2);
16//$n_var3 = explode(",",$var3);
17for($i=0;$i<=$limtex-1;$i++){
18
19
20 $n1 = $n_value[$i];
21 //$n2 = $n_var2[$i];
22 //$n3 = $n_var3[$i];
23
24 $Time = explode(",",$Time);
25 $select = explode(",",$SelectedSource);
26 $measure = explode(",",$SelectedMeasure);
27 //echo $text[$i];
28
29 echo $select[$i];
30
31
32 $selectf = $select[$i];
33 $Timef = $Time[$i];
34 $measuref = $measure[$i];
35
36
37 $insert = mysql_query("INSERT INTO tblscheduling values('','$Timef','$selectf','$measuref','$date','$n1')") or die(mysql_error("error"));
38}
39 if($insert){
40
41 header("Location: ../index.php?{$TimeEX2}");
42
43 }
44
45?>
Note: See TracBrowser for help on using the repository browser.