dmurray
2008-02-03 11:00:13 UTC
Before I was only using mysql_connect for one query but now I added another module above the previous one to to show a list of the most recently joined users to the community. It appears that if I use close($cxn); in the first module the php script stops running past that point so only like 1/2 of my page shows up.
I took close($cxn) out and it works. I am a fairly experienced programmer and feel like leaving connections open is bad practice since I open a new one for the module after the new users.
What is causing this? How can I create modules that each open their own connection to the database? Without disrupting eachother.