solarisuser Posted September 26, 2007 Share Posted September 26, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/70705-please-wait-page-while-php-runs-mysql-queries/ Share on other sites More sharing options...
marcus Posted September 26, 2007 Share Posted September 26, 2007 Use the sleep function. Quote Link to comment https://forums.phpfreaks.com/topic/70705-please-wait-page-while-php-runs-mysql-queries/#findComment-355403 Share on other sites More sharing options...
gromer Posted September 26, 2007 Share Posted September 26, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/70705-please-wait-page-while-php-runs-mysql-queries/#findComment-355415 Share on other sites More sharing options...
cooldude832 Posted September 26, 2007 Share Posted September 26, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/70705-please-wait-page-while-php-runs-mysql-queries/#findComment-355417 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.