My page was working fine until I added this piece of code and I can't figure out what is wrong with it.
<?
if (isset($_POST['credclick'])){
$amount=$_POST['credits']
mysql_query("UPDATE users SET points = points+".$amount." WHERE id = '".$username."'");
echo"<p>Credits Added</p>";
}
?>
$username is defined from the session at the top of the page.
$username=$_SESSION['username'];