RE: [PHP] Sending variables between PHP pages
| From: | Dave Brotherstone | Date: | Fri, 04 Jan 2002 16:35:52 +0000 |
| Subject: | RE: [PHP] Sending variables between PHP pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79467@lists.php.net to get a copy of this message | ||
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:berlina_berlina@hotmail.com]
> 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
>
> --