# php refresh help?

**URL:** <https://www.phphelp.com/t/php-refresh-help/18946>\
**Category:** General PHP Help\
**Created:** [November 19, 2012, 11:53pm UTC](https://www.phphelp.com/t/php-refresh-help/18946 "2012-11-19T23:53:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TOMONYOURMOM44](https://www.phphelp.com/letter_avatar_proxy/v4/letter/t/bbe5ce/32.png) [@TOMONYOURMOM44](https://www.phphelp.com/u/TOMONYOURMOM44)\
**Post date:** [November 19, 2012, 11:53pm UTC](https://www.phphelp.com/t/php-refresh-help/18946/1 "2012-11-19T23:53:40Z")

</div>

Hey guys i am making a small chat site using php and mysql, what i would like to do is have it so as something is posted the php automatically updates itself, i am currently doing it using but it is very glitchy and flashes while refreshing and always has the blue spinning wheel on the cursor. is there any script that i can use so the php file updates itself when the sql table gets updated? Thanks alot 😃

---

<div class="post-metadata">

**Author:** ![richei](https://www.phphelp.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@richei](https://www.phphelp.com/u/richei)\
**Post date:** [November 20, 2012, 12:33am UTC](https://www.phphelp.com/t/php-refresh-help/18946/2 "2012-11-20T00:33:34Z")

</div>

Its done automatically if the php is on the top of the page.

---

<div class="post-metadata">

**Author:** ![Gears](https://www.phphelp.com/user_avatar/www.phphelp.com/gears/32/259_2.png) [@Gears](https://www.phphelp.com/u/Gears)\
**Post date:** [November 20, 2012, 6:58pm UTC](https://www.phphelp.com/t/php-refresh-help/18946/3 "2012-11-20T18:58:07Z")

</div>

> [@TOMONYOURMOM44](#):
>
> Hey guys i am making a small chat site using php and mysql, what i would like to do is have it so as something is posted the php automatically updates itself, i am currently doing it using but it is very glitchy and flashes while refreshing and always has the blue spinning wheel on the cursor. is there any script that i can use so the php file updates itself when the sql table gets updated? Thanks alot 😃

Use Ajax and wrap it around some form like json or xml
