I am updating 100,000 records. So the page looks blank while the update query process runs on the backend. Can someone tell me how to display the text “Please wait blah blah” until the update ends?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well depending on your script and the structure, the easiest way would be to change a div’s css property called display. When a user clicks on a link that starts the php script, you could add a javascript code like :
and once its done, you can call another js function to close it like :
*NOTE I am using jquery functions, so you would need to include jquery in your pages.
There is another way you could do this using php ONLY, I had the same issue so take a look at this: how to show results while a php script is still running