php - Update data after desired time -


i want update record in database after click submit , wait 30 seconds example. trying use sleep() doesn't fine (page refreshing 30seconds).

<?php if(isset($_post['submitbutton'])){      echo "start!";     $sql = 'update players set money = money + 1 nick = "player" ';     mysql_query($sql, $connection); } ?>   <form action="" method="post">   <input type="submit" name="submitbutton" value="start"/> </form>  


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -