large-query

Jquery loading screen to cover a large mysql query via PHP?

僤鯓⒐⒋嵵緔 提交于 2020-01-04 02:27:06
问题 I'm in the middle of a reporting tool for my client which basically rebuilds reports on the fly if they are X days old. The issue is that the reports are rebuilt with PHP, and some of them can be pretty big, meaning 20-40 second loading times. At the moment, it just hangs the page while it performs the query. What I'm wanting to do however is have some sort of jquery loading overlay placed into the page before the query starts, and then when the query finishes, redirect to another page (where