08.02.2015, 11:41
The fact that's even necessary indicates that the database model isn't optimized. From the looks of it, it looks like you're trying to update a player's name in every table it appears in. However, a player's name should appear in the entire database just ONCE. All other features that need the player's name should refer to that name by its uniquely assigned id.
Also if you intend to execute a large sum of queries use transactions.
Also if you intend to execute a large sum of queries use transactions.
PHP код:
START TRANSACTION;
-- queries;
COMMIT;