I am making a points system on my site, like when someone post something on shoutbox the members get 1 point.
I tried this code
$result = mysql_query("SELECT * FROM members WHERE username='Johnson'"); $points = $result["points"]; $points += 20; mysql_query("UPDATE members SET points = '$points' WHERE username='Johnson'");
Let me explain it again:
If the member X have 20 points and he post something on shoutbox he will have 40 points and if post again he will havbe 60...
I did a search on google and didn't find anything that could help me.
so any help here ?