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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:10:34+00:00 2026-06-13T03:10:34+00:00

This is the scenario: I have multiple users using a PHP page/form to edit

  • 0

This is the scenario:
I have multiple users using a PHP page/form to edit data concurrently.
The table has rows of data and each user is allowed to edit any one row at a time. The system selects the row to be edited; so, the user is simply given a row to edit; he does not decide which row he will edit.

The first time a user visits the page with form, it load a row. Also, so that the system can decide which row to provide to any other concurrent user, it sets a flag in the database table indicating that the row has been loaded for edit (to another concurrent user).

Now, if the user refreshes the page or quits the page without clicking the Submit button, I want to roll-back the flag change so that the row that was loaded can be made available again for edit.

For this, I am planning to use MySQL transaction.
– At the start of the transaction the flag will be set.
– Then, the data to be edited will be loaded into the form.

Once, the user edits the data and submits it (by clicking a button), only then Commit will be issued.

So, my understanding is that the START transaction and the Commit will be occurring separately.

Can someone please provide some guidelines on how this can be achieved?

  • 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-13T03:10:35+00:00Added an answer on June 13, 2026 at 3:10 am

    Guess this isn’t possible; I am using PHP Session variables instead to accomplish my objective.

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

Sidebar

Related Questions

I have a scenario. Can this be done using one query ? Table Company
Imagine this scenario: You have a desktop and a laptop. The desktop has a
I have this scenario where I would like to redirect my domains using the
I am using rails and have the following scenario: Users have_many lists and each
Scenario: I have a web page with multiple charts and I have an 'Export
I want to do something like this.. I have a update form in PHP,
Please Consider this scenario: We have a base class called clsMain : class clsMain
So I have this scenario <div id=editor contenteditable=true> <div id=list>Hello</div> </div> I want to
I have this scenario well, i'll let the model explain. public class ScheduleMonthlyPerDayModel {
I have this scenario. I want group on Country and Category. A store can

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.