Ajax PHP MySQL based progress bar
We have already seen how the progress bar is displayed. We will extend the same technique to show a growing status bar as per the script execution. Here is the block diagram of the process.
progress-bar2-demo.phpThere is not much difference in basic progress bar script and this. Through a timer it reads data from progress-bar2.php and manage the value attribute of progress tag.
progress-bar2.phpThis page reads the data from the status table and returns the same to progress-bar2-demo.php through Ajax to display the progress bar image.
progress-bar2-1.phpThis script first deletes all the records of the status table and then updates it with different stage values. To create some delays in script execution sleep() function is used. At the end of each stage the status table is updated.
Download the zip file for all these three scripts.
Subscribe to our YouTube Channel here
This article is written by plus2net.com team. https://www.plus2net.com
| ▼ Click for more tutorial on Ajax & PHP