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){}
|
---|
8 | echo $TimeEX2 = "day=".$TimeEX[0]."&month=".$TimeEX[1]."&year=".$TimeEX[2];
|
---|
9 | echo $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);
|
---|
17 | for($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 | $dateTime=$Timef+$date;
|
---|
35 | $measuref = $measure[$i];
|
---|
36 |
|
---|
37 |
|
---|
38 | $insert = mysql_query("INSERT INTO schedule values('','$dateTime','','','','$n1','$selectf','$measuref')") or die(mysql_error("error"));
|
---|
39 | }
|
---|
40 | if($insert){
|
---|
41 |
|
---|
42 | ?>
|
---|
43 | <script type="text/javascript">
|
---|
44 | alert("Sucessfully save");
|
---|
45 | </script>
|
---|
46 | <?php
|
---|
47 |
|
---|
48 | }
|
---|
49 |
|
---|
50 | ?> |
---|
Note:
See
TracBrowser
for help on using the repository browser.