Ajax for DB Updation

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?………………………………….. Well depending on your script and the structure, the easiest way …

via PHP Website Development » Search Results » ajax:

Ajax for DB Updation

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?
…………………………………..

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 :
$(#+THEIDOFYOURDIV).show(“slow”);
});and once its done, you can call another js function to close it like :
$(#+THEIDOFYOURDIV).hide(“slow”);
});*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

For more info: Ajax for DB Updation

PHP Website Development » Search Results » ajax

Ajax for DB Updation

Share this post:

Related Posts

Leave a Comment