Hi,
I am a new php programmer.
I have an class which contains all database transaction handling functions. After I declared an instance of this class, I pass it to a first function, perform some database transaction without commit it, and then pass the instance from first function to second function to perform more database transaction. These transactions are commited when first function returns back to calling function code.
However, I found that only the second transaction is commited but not the first transaction. I first suspected it may caused by pass by value problem. Therefore, I pass the instance variable by reference. Unfortunately, the problem remains the same.
Please help.