Hi!
Has anyone managed to use transactions with MySQL and Php?
Since the x10 server Starka seems to be having massive problems with MySQL connections there's a high probability that connections are lost between queries that need to be executed together. (It has happened that new players have signed up, but not received any activation e-mail because the database connection was lost in between actions).
I've tried to use SET AUTOCOMMIT=0 and then use BEGIN, END and COMMIT statements.
If I put an "exit;" (in the php code) and halts it before the COMMIT, all changes should be rolled-back right? It seems like it doesn't.
Or is the mysqli class a better alternative?
Has anyone managed to use transactions with MySQL and Php?
Since the x10 server Starka seems to be having massive problems with MySQL connections there's a high probability that connections are lost between queries that need to be executed together. (It has happened that new players have signed up, but not received any activation e-mail because the database connection was lost in between actions).
I've tried to use SET AUTOCOMMIT=0 and then use BEGIN, END and COMMIT statements.
If I put an "exit;" (in the php code) and halts it before the COMMIT, all changes should be rolled-back right? It seems like it doesn't.
Or is the mysqli class a better alternative?