Making a Please wait screen while looping database
Posted: Wed May 26, 2004 8:06 pm
Well heres my doubt.. i have to make a HUGE query to the database.. im talking about 5000+ querys in one loop... so i was wondering how do i make a waiting screen while the results are shown..
i usually get all the htm ito a variable and then at the end i print it out..
i did something with javascript opening another window and shile looping i send informtion to a textbox in the new opened window.. but my prolem is that the echo that sends the info to the other window doesnt do it continusly.. for example.
when i enter page 1 (the one that makes the querys), i make an ECHO and open the new window but that doesnt occur inmeaditly it happens just 2 or 3 seconds after entering the page.. and then while looping i make another echo everytime it loops ,. but the "counter" in the other page doesnt refresh inmedialty.. its smething like php waits n seconds or something to return data to the browser.
Any help here?.. how can i tell PHP that i want the data to be echo every tiem it llops..
Thnaks in advance.. sorry for my english. if something here that you could understand please ask me..
Thanks again!
i usually get all the htm ito a variable and then at the end i print it out..
i did something with javascript opening another window and shile looping i send informtion to a textbox in the new opened window.. but my prolem is that the echo that sends the info to the other window doesnt do it continusly.. for example.
when i enter page 1 (the one that makes the querys), i make an ECHO and open the new window but that doesnt occur inmeaditly it happens just 2 or 3 seconds after entering the page.. and then while looping i make another echo everytime it loops ,. but the "counter" in the other page doesnt refresh inmedialty.. its smething like php waits n seconds or something to return data to the browser.
Any help here?.. how can i tell PHP that i want the data to be echo every tiem it llops..
Thnaks in advance.. sorry for my english. if something here that you could understand please ask me..
Thanks again!