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, no
;php-general-list"
> <[EMAIL PROTECTED]>; "php-dev-list" <[EMAIL PROTECTED]>;
> "php-db-list" <[EMAIL PROTECTED]>
> Sent: Friday, January 04, 2002 12:38 PM
> Subject: RE: [PHP] Sending variables between PHP pages
>
>
> > >> Yes, than
>;
"php-db-list" <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 12:38 PM
Subject: RE: [PHP] Sending variables between PHP pages
> >> Yes, thanks a lot, but i need to mantain the connection open for manage
a
> >> transaction, an everytime that I open a new d
>> Yes, thanks a lot, but i need to mantain the connection open for manage a
>> transaction, an everytime that I open a new database connection,
>> the system
>> begins a new transaction and I lose the last one.
>> Do you understand, me?
>> Do you know the way for do that?
I think it is imposimbl
>> 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?
I don't think one can do that. There is NO need for that. You can write
header.php file and
include it in the beginning of each PHP page where yo
5 matches
Mail list logo