Find Jobs
Hire Freelancers

Transactions on multiple connections, data integrity fails while one transaction executes

₹600 INR

Closed
Posted over 5 years ago

₹600 INR

Paid on delivery
I am trying to work on a transaction based PHP-MYSqli with OOPS code for a small application in the following scenario: PHP 5.6.x for server and PHP Desktop version phpdesktop-chrome-57.0-rc-php-7.1.3, thus application will run both on 5.6.x and 7.x versions of PHP. Multiple people can access the same php application simultaneously. This means that every user will have an independent connection available to access the application because I have included a connection on the top of every page through files inclusion. What I want is that when one user presses the submit button, all the tables inside a particular transaction should get locked in read and write mode and none of them should be accessible by any of the users on the same or any other connection. Thus, I want 100% data integrity. In the attached codes: First I start executing [login to view URL] and immediately, I also start clicking the go button of [login to view URL] another other browser tab. Following are the results of [login to view URL] when: Image: [login to view URL] is still executing Image: when [login to view URL] has finished executing It is good to see that at the end, I get the accurate results but it is bad to see that even when one transaction is execute, another user is getting the wrong output. The second user should not be able to see anything when the [login to view URL] is executing. Note: $mysqli->begin_transaction(MYSQLI_TRANS_START_READ_WRITE); doesnt work in my current version of php
Project ID: 17471169

About the project

4 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
4 freelancers are bidding on average ₹1,050 INR for this job
User Avatar
Hi, This is amit my designer can do this transaction as per your requirements, She read and checked attached images. Thanks
₹950 INR in 2 days
5.0 (7 reviews)
3.8
3.8

About the client

Flag of INDIA
Kurukshetra, India
5.0
31
Payment method verified
Member since Sep 8, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.