# Multiplayer Blackjack (GET)

**URL:** <https://www.phphelp.com/t/multiplayer-blackjack-get/19823>\
**Category:** General PHP Help\
**Created:** [March 11, 2013, 9:48pm UTC](https://www.phphelp.com/t/multiplayer-blackjack-get/19823 "2013-03-11T21:48:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![StevenWilmot](https://www.phphelp.com/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@StevenWilmot](https://www.phphelp.com/u/StevenWilmot)\
**Post date:** [March 11, 2013, 9:48pm UTC](https://www.phphelp.com/t/multiplayer-blackjack-get/19823/1 "2013-03-11T21:48:55Z")

</div>

Im in the middle of a multiplayer blackjack game,  
however im in need of a method so that when the time runs out that the script gets hold of another page which will calculate all the results,  
I then want it to post the results on the same page, however I want this script to run when the timer runs out without the player having to refresh the page.  
Greatful for any help.

---

<div class="post-metadata">

**Author:** ![Redscouse](https://www.phphelp.com/user_avatar/www.phphelp.com/redscouse/32/124_2.png) [@Redscouse](https://www.phphelp.com/u/Redscouse)\
**Post date:** [March 14, 2013, 11:34am UTC](https://www.phphelp.com/t/multiplayer-blackjack-get/19823/2 "2013-03-14T11:34:29Z")

</div>

> [@StevenWilmot](#):
>
> however I want this script to run when the timer runs out without the player having to refresh the page.

Sounds like a job for javascript/jquery 😉

`setInterval(function() {
	// do something here after 3 seconds...
}, 3000);`

This little snippet will perform some action after three (3000 = 3) seconds.

Hope that helps,  
Red 😉
