Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
March 23, 2007, 3:12 pm
rate this thread
if i have a simple question- if i open a database connection in one
snippet of php, can i use it in a subsequent snippet in the same php
//open database here
//now use open database
i thought this should work but i'm getting errors. thanks for any
Re: scope of mysql connections with multiple php snippets
If you didn't close the connection, it is still available later in the SAME
When PHP reaches the end of the script and stops, it automagically closes
the connection for you.
You must have some other issue going on in your script.
Maybe it helps if you post a real example, so we can see what you are really