I stumbled in the community for my problem but I could not find a solution-maybe it is to specific. The following sequence of functions / operations I am executing in PHP:
- construct a object of class_1
- function in class_1 connects to MySQL without a defined link identifier
- then I create a temporary table [..functions in class_1 do something..]
- a new function is called which create a object_2 of class_2
- in object_2 I create a new MySQL connection with the parameter of creating a new link true and link identfier
- I close the MySQL connection with MySQL_close in object_2 with the link identifier
- in object_1 the temporary table still not exists / it try to reconnect to MySQL automatically
If I do not create object_2 everything works fine. what I am doing wrong?
Thanks to everybody for help finding a solution. The link identifier solution is as mentioned bit poor for me. at php.net is a detailed description of my problem and some hints how to solve: