-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheditUp.php
37 lines (31 loc) · 1.95 KB
/
editUp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
require_once("easyCRUD/easyCRUD.class.php");
require_once("Db.class.php");
$db = new Db();
$id=$_POST['id'];
$weixinName=$_POST['weixinName'];
$name=$_POST['name'];
$nickName=$_POST['nickName'];
$jieseTime=$_POST['jieseTime'];
$luruTime=$_POST['luruTime'];
$endTime=$_POST['endTime'];
$leftTime=$_POST['leftTime'];
$state=$_POST['state'];
$pojiecishu=$_POST['pojiecishu'];
$pojieTime=$_POST['pojieTime'];
$pojieshengyuTime=$_POST['pojieshengyuTime'];
$update1 = $db->query("UPDATE bang SET weixinName = :weixinName WHERE id = :id", array("weixinName"=>$weixinName,"id"=>$id));
$update2 = $db->query("UPDATE bang SET name = :name WHERE id = :id", array("name"=>$name,"id"=>$id));
$update3 = $db->query("UPDATE bang SET nickName = :nickName WHERE id = :id", array("nickName"=>$nickName,"id"=>$id));
$update4 = $db->query("UPDATE bang SET jieseTime = :jieseTime WHERE id = :id", array("jieseTime"=>$jieseTime,"id"=>$id));
$update5 = $db->query("UPDATE bang SET luruTime = :luruTime WHERE id = :id", array("luruTime"=>$luruTime,"id"=>$id));
$update6 = $db->query("UPDATE bang SET leftTime = :leftTime WHERE id = :id", array("leftTime"=>$leftTime,"id"=>$id));
$update7 = $db->query("UPDATE bang SET state = :state WHERE id = :id", array("state"=>$state,"id"=>$id));
$update8 = $db->query("UPDATE bang SET endTime = :endTime WHERE id = :id", array("endTime"=>$endTime,"id"=>$id));
$update9 = $db->query("UPDATE bang SET pojiecishu = :pojiecishu WHERE id = :id", array("pojiecishu"=>$pojiecishu,"id"=>$id));
$update10 = $db->query("UPDATE bang SET pojieTime = :pojieTime WHERE id = :id", array("pojieTime"=>$pojieTime,"id"=>$id));
$update11 = $db->query("UPDATE bang SET pojieshengyuTime = :pojieshengyuTime WHERE id = :id", array("pojieshengyuTime"=>$pojieshengyuTime,"id"=>$id));
//echo "$luruTime <br>";
//echo "$jieseTime <br>";
echo 'sucess';
?>