diff --git a/.DS_Store b/.DS_Store index 256ec3c..91c6011 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/data_game/admin.php b/data_game/admin.php index 3f7698d..c051106 100644 --- a/data_game/admin.php +++ b/data_game/admin.php @@ -9,6 +9,13 @@ $admin_value = $_POST['admin_value']; if($admin_value=='0'||$admin_value=='1'||$admin_value=='2'){ $query = "UPDATE credentials SET `admin_value`='$admin_value' WHERE `credentialsID`='$credID'"; + if($admin_value=='0') + $query = "UPDATE member SET `post`='Member' WHERE `cred_id`='$credID'"; + else if($admin_value=='1') + $query = "UPDATE member SET `post`='Coordinator' WHERE `cred_id`='$credID'"; + else if($admin_value=='2') + $query = "UPDATE member SET `post`='Overall Coordinator' WHERE `cred_id`='$credID'"; + $query_run = mysqli_query($connection,$query); header('location:../geekhaven/makeAdmin.php'); }else{ diff --git a/data_game/savemem.php b/data_game/savemem.php index 7e21beb..a801de6 100644 --- a/data_game/savemem.php +++ b/data_game/savemem.php @@ -29,7 +29,7 @@ }else{ $query = "INSERT INTO social_handles VALUES('$social_handle_id','','','','','','','','','','')"; $query_run = mysqli_query($connection,$query); - $query = "INSERT INTO member VALUES ('$username', '', '', '', '$member_id', '0', '$social_handle_id', '$cred_id', '$mem_post', '$wing', '$sess')"; + $query = "INSERT INTO member VALUES ('$username', '', '', '', '$member_id', '0', '$social_handle_id', '$cred_id', 'member', '$wing', '$sess')"; $query_run = mysqli_query($connection,$query); $query = "INSERT INTO credentials VALUES('$cred_id','$username','$pass','0','$member_id')"; $query_run = mysqli_query($connection,$query); diff --git a/getData/ann.php b/getData/ann.php new file mode 100644 index 0000000..cbe6fa4 --- /dev/null +++ b/getData/ann.php @@ -0,0 +1,47 @@ + + + + +
+ + + + +