Why specify an explicit database connection?

ruireeGof

New Member
I am making a simple blog for myself and while reading through the PHP manual, I found this http://us2.php.net/manual/en/function.pg-query.phpIt says\[quote\] resource pg_query ([ resource $connection ], string $query ) ... Note: Although connection can be omitted, it is not recommended, since it can be the cause of hard to find bugs in scripts.\[/quote\]Why is it not ok to just use the last connection? I never plan on having more than 1 connection open per PHP script, so how would this ever cause bugs for me?
 
Back
Top