I need some help.
I have different files. For example:
- index.php, news.php
- include-scripts like: facebook.php, pay.php and more.
On all the pages (except news.php) a transaction is started at the beginning of the script, and ending at the end of the script.
On pages like index.php and news.php, I include pay.php. But the problem is: when I'm visiting index.php a transaction is already started, so now two transactions are active! But I can't remove the transaction-start from pay.php, because if I call the script from news.php there is no active transaction.
(My website is much more complex with many more pages and things).
Can someone help me please? Thanks!