Does anyone know how to improve this script to work? because it does not add Scroll points to the prey
C++:
<a href="?subtopic=scroll">Reward Player Scroll Prey.</a>';
if($action == "reward") {
$player = stripslashes(ucwords(strtolower(trim($_REQUEST['character']))));
$points = $_POST['points'];
if(empty($player)) {
$main_content .= '<form action="" method="post"><B>Enter Character Name:</B><input type="textbox" name="character"><br>
<B>Enter Points Amount:</B><input type="textbox" name="points"><br><br><input type="submit" value="Submit">
</form></center><form action="?subtopic=adminreport" method="post" ><input name="submit" type="submit" value="Close" title="Close"/></form>';
} else {
$player_data = $SQL->query("SELECT * FROM `players` WHERE `name` = '".$player."';")->fetch();
$SQL->query("UPDATE `accounts` SET `bonus_rerolls` = `bonus_rerolls` + '".$points."' WHERE `id` = '".$player_data['account_id']."'");
$main_content .= '<b><center>'.$points.' Bonus Rorells Points added to the account of <i>'.$player.'</i> !</b></center><br>
<form action="?subtopic=scroll" method="post" ><input name="submit" type="submit" value="Close" title="Close"/></form>';
}
}
$main_content .='
<table>