Jump to content

"Please Wait" page while php runs mysql queries


solarisuser

Recommended Posts

Hi All,

 

Does anyone have any idea what I should google to create a "splash page" that tells the user to wait while a few mysql quieries are run through the php page?  It takes anywhere from 5 to 20 seconds, and I don't need a progress meter, just a splash page so they do not go anywhere and the user doesn't think there is a problem with their browser or network connection.

 

Thanks

Use the sleep function.

 

What if he does a sleep of 10 seconds and it takes 20 seconds for the query to run?

 

I would use AJAX for this.  When they submit the form, it displays a loading gif image or whatever you want and once you catch the response, it displays whatever you need to display.  I started learning my AJAX stuff at w3school, you should look there.  Also, there are prolly some really good books our there.

Ajax is one method, an alternative method is run all the queries with the splash page, then when it gets past that point in the doc it will remove the splash page by sending it to the negative z-index, and the content underneath will show.

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.