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 8546173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:57:23+00:00 2026-06-11T12:57:23+00:00

I have html table that get data from mysql. Every 5 seconds I check

  • 0

I have html table that get data from mysql.
Every 5 seconds I check if there is any changes in mysql table using ajax and update specific html table cells.

Now I want to use this nice jquery plugin:
http://mitya.co.uk/scripts/Table-sort—now-REGEXP-friendly-111

So there is a plan:
1. Load table
2. Every 5 sec check if any cells are need to be updated
3. Run jquery table sort plugin.

The question is how to find html cell which I want to update? After sorting all data is moving in table.

I tried to load table from my sql by:

while ($row = mysql_fetch_assoc($result))
{
    echo "<tr id='{$row[id]}'>

But sorting plugin moving only data. Not entire html rows…

  • 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-06-11T12:57:24+00:00Added an answer on June 11, 2026 at 12:57 pm

    Can you use jquery’s empty() function to empty out the table and then redraw all the rows?

    Alternatively, you could use the id attribute to reference a specific row using the table’s unique index.
    ex: <tr id="row<?=$row->id?>"><td id="name<?=$row->id?>"><?=$row->name?></td><td id="count<?=$row->id?>" ><?=$row->count?></td></tr>

    and then use jquery to update each rows content accordingly

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

Sidebar

Related Questions

I have an HTML table populated with data from a MySQL database using a
I have a code that populates data from a mysql table into an html
I have an html table containing values that are being generated from javascript. How
I have a big problem. I want to extract text from html table that
I have a PHP/MySQL query that returns to an HTML table, and I'm stuck
I have a php page that pulls data from a mysql database based on
I have report that I must convert to PDF using xsl-fo from xml data
So I have this simple PHP loop that is generating html table data with
I'm running MySQL 5.1 and storing data from web logs into a table. There
I have a site that displays data on travel products from a MySQL database.

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.