I have a form which should check the posted field and update an associated row in a sql table incrementally i.e. the number should increase each time. I've tried this a few different ways but unable to get this working - any help appreciated.
if(!empty($_POST['username']))
{
$username =($_POST['username']);
mysql_query("
UPDATE users
SET refer = refer +1
WHERE Username = '".$username."'
");
}