$value) { $_POST[$key] = $database->escape($value); } $uid = (int) $_POST['uid']; $topic = $_POST['topic']; $message = $_POST['message']; $time = time(); $query = "INSERT INTO ".TB_PREFIX."mdata VALUES ('', '$uid', 1, '$topic', '$message', 0, 0, 0, '$time', 0, 0, 0, 0, 0, 0)"; mysqli_query($GLOBALS["link"], $query) OR DIE (mysqli_errno($GLOBALS["link"])); header("Location: ../../../Admin/admin.php?p=Newmessage&uid=".$uid."&msg=ok"); ?>