Jump to content

a real problem with counting down!!!! need help big time!!!!


aleman84

Recommended Posts

Right from the start, I need a script that counts up to 45 minutes and every 1 minute it goes a function. what function is not the issue just a general function. It also needs to display the minutes and seconds for the user to see. This needs to auto update and the time needs to be based on server time not client side.

I know its alot to ask but does any one know how to do this as its so very important!!!!

Need help from the best php guys on the net!!!!


lol I am so in need of help lol.

Cheers.
You cannot have a php script countdown. You will need to use a combination of javascript and php and some ajax implimentation.

Ever looked at Ajax? [a href=\"http://marc.theaimsgroup.com/?l=php-general&m=112198633625636&w=2\" target=\"_blank\"]here[/a] is a quick introduction.
oh, oh, oh! now I thought this might be simple ah! ok, well im new to AJAX! this is a whole new area for me. What I am looking to do is that possible after learning a little AJAX? or will I have to get into it big time?


Thank you for the fast response!
HI

This may help you out a little but it will count down
removing the echo "<br />" it will count accross

sleep is set at 1 second make this 60 per minute

[code]for( $i=0;$i<45;$i++){
    echo $i;
    echo "<br />";
    ob_flush ();
    flush();
    sleep(1);
    
}[/code]

it will not refresh to count up in one letter characters

cheers

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.