Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6915761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:30:56+00:00 2026-05-27T09:30:56+00:00

This is is my case: I upload an Excel file and each row is

  • 0

This is is my case:

I upload an Excel file and each row is read into a table. Then each row in the table is processed before the user gets feedback. This processing can take some time.

How can I create a progress bar that shows how many % of the rows has been processed?

My solution is using MySQL, PHP and jQuery.

UPDATE
It seems people don’t understand my question.

I’m not asking how I can implement jQuery progress bar, that is the easy part.
I’m asking what logic do I need to implement in PHP to send data back after each insertion.

After I click Submit on my form, data + file is sent for processing. For each row inserted, I somehow want to update the progress bar.

Since the form data is submitted to it’s own page, I don’t see how I can use jQuery progressbar – even though I want to use it.

How do I send data back while the processing continues? Do I use some sort of CRON?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:30:56+00:00Added an answer on May 27, 2026 at 9:30 am

    I don’t know if this would work for your current solution, and I don’t think I will provide any sample code because I can’t see your code. But I will at least type up my idea.

    Since you are using MySQL you could create a table to hold the progress data of your processing.
    For example you could store a ‘session ID’, a ‘total count of the rows in the file’ and the ‘last row which was processed’.

    While you are processing your file’s rows you can INSERT ... ON DUPLICATE KEY UPDATE the progress table (The ‘session ID’ being your key).

    Of course if you have a large file this could be making more queries in your database than you really want, so you could for example update the table every 10 rows and then finally update when the last row is processed to lower the number of calls to your database.

    While all of this is happening your user will be waiting on a page with your jQuery UI progress bar.

    This page can make timed AJAX calls to a PHP file which would query your progress table to get the ‘last row number processed’ and the ‘total row count’.

    Once you have this information returned via your AJAX call you can use the AJAX success function to do some simple maths with the ‘last row updated’ and ‘total rows’ number to update your jQuery progress bar.

    When the progress bar is updated to 100% the AJAX could make one last call to delete the row from your progress table.

    It isn’t perfect but it is an idea at least.

    I’m sorry I can’t provide any sample code but I feel it would be a waste of time without seeing your current implementation and without knowing if this is the kind of solution you are looking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to upload a file (in this case a csv file) and load
I want to upload files directly to IIS7 (in this case I am using
I've been trying to Base64 encode image data from the user (in this case
I have a query which shows all images from a user. (In this case
I have a query which shows all images from a user. (In this case
I have a web site which handles files management. User can upload file, add
On my website I use simple file management. User can upload files, see the
Say that I have an application where user can upload his avatar, and then
Consider this case: dll = LoadDLL() dll->do() ... void do() { char *a =
Imagine this case where I have an object that I need to check a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.