defined('AntiBK') or die ("Доступ запрещен!"); $room = (isset($_POST['room'])) ?$_POST['room'] :""; $log = (isset($_POST['log'])) ?$_POST['log'] :""; ?>
if (isset($_POST['login']) && isset($_POST['room'])) { $sql = $adb->query("UPDATE `characters` SET `room` = '$room' WHERE `login` = '$log';"); echo "Все сменено"; } ?>