space cowboy
06-17-2009, 01:24 AM
Hi, a newbie to Ajax here so easy to understand answers, please :)
Im trying to build a VERY simple chat function on a page.
I have one text field, when someone types into this and clicks enter, the text is automatically written to the database (im using PHP and mySQL). I have this bit working fine.
Just above this text field I have a div tag which pulls all the entries out of the database. I need this to automatically refresh (say every 10 seconds) without any input or changes from the user. How can I do this?
any help would be very much appreciated :D
Im trying to build a VERY simple chat function on a page.
I have one text field, when someone types into this and clicks enter, the text is automatically written to the database (im using PHP and mySQL). I have this bit working fine.
Just above this text field I have a div tag which pulls all the entries out of the database. I need this to automatically refresh (say every 10 seconds) without any input or changes from the user. How can I do this?
any help would be very much appreciated :D