<?php if($_SESSION['credits']<=2000) { ?>
mysql_query("UPDATE $_SESSION['credits'] SET "$_SESSION['credits'] + $_SESSION['credits']" WHERE `id` = "$_SESSION['id']"");
<?php } ?>
I want when clicking a HTML button, while being logged in with a database ID. for it to check for me if my "credits" value (how much currency I have) if it is lower than 2000. If it is, I want it to add some currency to my account.
Is that up there wrong?