And creating a project and I needed that when the user clicked on the "START POINTS" button the Code of PHP
was activated, every 10 seconds he would gain 1 point in database
and this would be repeated until the user click the "STOP POINTS" button.
I have already done the points part, but how do I do the "timer"?
It would be more or less like this:
Every 10 seconds it runs:
$sql_soma = mysql_query("UPDATE users SET cpoints = cpoints+1 WHERE users.user_email = '$e_mail'");