-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomplete.php
42 lines (36 loc) · 864 Bytes
/
complete.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
38
39
40
41
42
<?php
include ("user.php");
$type = $_POST['type'];
if($type=='count'){
$sql = "UPDATE `user` SET `complete_count`='y' WHERE `username` = '$username' ";
$result=mysqli_query($conni,$sql);
if(!$result){
die(mysqli_error($conni));
}
echo "true";
}
if($type=='great'){
$sql = "UPDATE `user` SET `complete_greater`='y' WHERE `username` = '$username' ";
$result=mysqli_query($conni,$sql);
if(!$result){
die(mysqli_error($conni));
}
echo "true";
}
if($type=='sub'){
$sql = "UPDATE `user` SET `complete_sub`='y' WHERE `username` = '$username' ";
$result=mysqli_query($conni,$sql);
if(!$result){
die(mysqli_error($conni));
}
echo "true";
}
if($type=='twosub'){
$sql = "UPDATE `user` SET `complete_twosub`='y' WHERE `username` = '$username' ";
$result=mysqli_query($conni,$sql);
if(!$result){
die(mysqli_error($conni));
}
echo "true";
}
?>