By this way, you always reopne a new connection at the end of all of your
page
You just have to use somthing like this...
if($connection)
@mysql_close($connection);
But as it was said, you are not *obliged* to close the connection, PHP will
close it himself.
But you can also close your
I've been told (in this newsgroup as well :) that PHP automatically closes
the MySQL connections on closing the file or session..
probably when you ended your last '?>' PHP closed the MySQL connection
a way to solve it is to insert the closing-command right after you finished
using the connection
2 matches
Mail list logo