Find Jobs
Hire Freelancers

307169 MySQL update problem

N/A

In Progress
Posted about 15 years ago

N/A

Paid on delivery
So I'm having a problem with a field in the MySQL database: it's a bank account field called "bank" part of the "user" table. Every user has his own row with his bank savings. The problem is when 2 users share the same account in the bank (they can deposit or withdraw from the same raw in the database) ... if they press the "withdraw" button at the same time and they both get all the money from the bank and they basically double their money (this is an exploit actually). A lot of users did this and ended up with a lot of money. Is there a protection I can apply for this? I was thinkin' on locking that row but it also may happen one user to deposit and the other to withdraw at the same time ... so sometimes that could affect a normal player ... I'm willing to pay someone for a good solution to my problem. Feel free to bid.
Project ID: 2052964

About the project

Remote project
Active 12 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

About the client

Flag of ROMANIA
Timisoara, Romania
5.0
32
Payment method verified
Member since Jun 29, 2008

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)
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.