/commit/commitsecuritylevels.php
https://github.com/steveworkman/Uni-Sport · PHP · 20 lines · 14 code · 5 blank · 1 comment · 0 complexity · 5902c54d2b6ead2d9c9e60e293e2438f MD5 · raw file
- <?php
- include "../inc/connect.inc.php";
- include "../inc/secure_page.inc.php";
- //print_r($_POST);
-
- $query = "UPDATE `securitylevels` SET `group_id` = '".$_POST['1']."' WHERE `securitylevel_id` = '1'";
- $res = mysql_query($query)
- or die(mysql_error());
-
- $query = "UPDATE `securitylevels` SET `group_id` = '".$_POST['2']."' WHERE `securitylevel_id` = '2'";
- $res = mysql_query($query)
- or die(mysql_error());
-
- $query = "UPDATE `securitylevels` SET `group_id` = '".$_POST['3']."' WHERE `securitylevel_id` = '3'";
- $res = mysql_query($query)
- or die(mysql_error());
- header("location:../adminpages.php?Page=securitylevels");
-
- ?>