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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:40:57+00:00 2026-06-04T15:40:57+00:00

I have an HTML table full of text fields. I have the ability to

  • 0

I have an HTML table full of text fields. I have the ability to add new rows in the table (I am just doing this with a JavaScript function call and inserting them directly) on the fly. I need to be able to save the table values right into a (MYSQL through PHP) database. I have got the database all hooked up, but I have a question about saving the changes to my table.

How can I know which fields of the potentially dozens of fields are ‘dirty’? I am thinking it would be easiest to just clear out the database when I need to save and insert all of the data from the HTML table into the database. Is that an acceptable approach?

  • 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-04T15:40:59+00:00Added an answer on June 4, 2026 at 3:40 pm

    In general it’s better to clear out all relevant records and re-add them. It saves a lot of messing around BUT do be sure the table you’re saving contains all the relevant data. If you have state data that wouldn’t normally be editable (like creationDate you should be sure it’s available to resave.

    You should also wrap the whole process in a transaction so you can roll back any deletions if saving the new data fails for any reason.

    • 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 in my jsp page. This conains text fields and
I have a html table like this: Invoice# Due Date Balance Select 12345 12/25/2011
I have an HTML table that contains some 500 rows. I have an input
I have this html table: <table class=table-all> <tbody> <tr> <td>BISFENOLO</td> <td>Bisfenolo-AF 10/10</td> <td class=right>€
I have an HTML table where I'm building an edit function to change a
I have a html table and insert a new row with table.insertRow() , but
Here's my problem: I have an HTML table that looks like this: What I
I have the following code: <html> <head> <script type=text/javascript language=javascript src=jquery/jquery-1.5.1.js></script> <script type=text/javascript language=javascript
I have a function in php that builds an html string for a table
I have set up the full-text search functionality in SQL Server 2008 express. This

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.