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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.