- <?php
- require_once 'conn.php';
- checkLogin();
- $originaltag = $_GET['originaltag'] ?? '';
- $newtag = $_GET['newtag'] ?? '';
- $originaltag = textEncode(urldecode($originaltag));
- $newtag = textEncode(urldecode($newtag));
- $sql = "UPDATE tagtable SET tagName='" . $conn->real_escape_string($newtag) . "'
- WHERE tagName='" . $conn->real_escape_string($originaltag) . "'
- AND employeeId=" . $_SESSION['employee_id'];
- $conn->query($sql);
- ?>
|