no me entendiste
Código PHP:
<?PHP
if (isset($_GET['input'])){
$useracc = $_GET['input'];
$conexion = mysql_connect("LOCALHOST", "USUARIO", "CONTRASEÑA");
mysql_select_db("realmd3", $conexion);
$sql_check = mysql_query("SELECT id FROM account where username='$useracc'");
//funcionara?
$row = mysql_fetch_assoc($sql_check);
$id = $row["id"];
$cred = mysql_query("SELECT points from donation_points where id='$id'");
$rowp = mysql_fetch_assoc($cred);
$pactual = $rowp["points"];
$puntosasumar = 20;
$allcsp = $pactual+$puntosasumar;
$exe_credit = mysql_query("UPDATE donation_points Set points='$allcsp' Where id='$id'");
?>
<script type="text/javascript">
window.location = "www.pagina-donde-va.com"
</script>
<?
}
?>