your pages should be dynamic, meaning every time user open your page it keep
on getting data from table
how about using the Meta tags from html it will refresh you page in x seconds
(define x as you need)

<meta http-equiv="refresh" content="x">

On Thursday 22 August 2002 02:01 pm, Budi Kelana wrote:
> Hi,
>
> I want to make a web page that can retrive data from my tables
> automatically, periodically.
> Does PHP have some timer control ?
> I know we can do with JavaScript (setInterval() or setTimeOut()) but I
> cann't  join java script with PHP.
>
> I've tried make simple script with JavaScript to open new window that
> contain PHP script for show current time every 5 seconds.
>
> function showData() {
>   newWindow = Window.open('data.php','screen');
> }
>
> function loadData() {
>   setInterval('showData()','5000')
> }
>
> data.php :
>
> <?
>   echo date("l dS of F Y h:i:s A");
> ?>
>
> in result, data.php will reload every 5 seconds, but it doesn't change.
>
> Can someone help me and give me suggestion ?
>
> TIA
>
> regards,
>
> Budi Kelana

-------------------------------------------------------


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to