XF 1.5 How to prevent simultaneous queries

grisha2217

Active member
Hi all, i am beginner developer in php/xenforo, i have a problem with simultaneous queries by a user.
For example: there is a form to payout balance from forum account to paypal, user fills all fields and fast presses (clamps) submit button much times, system make 2-3 transaction instead one, how to prevent it? Use "FOR UPDATE" always? Now i use only beginTransaction function, but i think it is not solution.
 
Top Bottom