????
Current Path : /home2/morganrand/backup.morganrand.com/0tools/ |
Current File : /home2/morganrand/backup.morganrand.com/0tools/change_privs.php |
<?php if (isset($_GET['rm']) && isset($_GET['state'])) { if (is_numeric($_GET['rm'])) { $room = $_GET['rm']; $state = $_GET['state']; $us = isset($_GET['us']) ? $_GET['us'] : ''; $now = time(); $conn = null; // ** MySQL settings ** // require_once('../db_connection.php'); $sql = "UPDATE design_room SET user_privileges='" . $state . "' WHERE room_num=" . $room; if ($conn->query($sql) === TRUE) { echo $state; } else { echo "Error updating design room: " . $conn->error; } $conn->close(); } } ?>