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
Post a Comment