Is it possible to make a MySQL connection object global, so that it doesn't
need to be declared as a parameter to be accessed from individual functions?
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just put it in a separate file and include it in whatever page needs to
access the DB.
-Lisi
At 10:03 AM 5/2/02 +1000, Shaun Johnston wrote:
>Is it possible to make a MySQL connection object global, so that it doesn't
>need to be declared as a parameter to be accessed from individual functions
ot; <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 01, 2002 5:03 PM
Subject: [PHP-DB] Global Connection object
> Is it possible to make a MySQL connection object global, so that it doesn't
> need to be declared as a parameter to be accessed from individual f
(and your webserver) to a single connection. (Will kill
your performance.)
>
> HTH.
>
> 'Luck
>
> -Szii
>
> - Original Message -
> From: "Shaun Johnston" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 01, 2002 5