Use the pconnect functions. These do exactly that. eg. mysql_pconnect(....) at the top of your page, and it will re-use the database connection for you. mysql_close() won't close a permanent connection.
Please don't post general questions to the php-dev list. This is for development OF PHP, not IN PHP. Dave. > -----Original Message----- > From: Berlina [mailto:[EMAIL PROTECTED]] > Sent: 04 January 2002 11:16 > To: php-general-list; php-dev-list; php-db-list > Subject: [PHP] Sending variables between PHP pages > > > Hi users, > > how can I send a connection database variable, from one PHP page to other > PHP page, and maintance the database connection open during both pages? > > Thanks > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]