Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001071

Re: [PHP-DB] lost link to pgsql thru PHP pages From: Cornelia Boenigk (poppcorn <email protected>)
Date: 07/15/01

Hi Albert

> Hi, i have tried in any mode to pass the link from 1st page where i
make
> the connect
> and the second where the connect is lost.

Not the connection is lost but the variable $link.
You use pg_pconnect which establishes a persistent connection. This
connection is not automatically closed, when the page is left.

You have to pass the variable to the next page, for example with the
url:

<a href="test2.php?link=$link">Test2</a>

Hope it helps
Conni

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>