Date: 07/15/01
- Next message: AKA Hook: "[PHP-DB] PLEASE HELP! Problem with ODBC string insert"
- Previous message: David Balatero: "RE: [PHP-DB] www.oosha.com/phpdev/"
- Next in thread: Cornelia Boenigk: "Re: [PHP-DB] lost link to pgsql thru PHP pages"
- Reply: Cornelia Boenigk: "Re: [PHP-DB] lost link to pgsql thru PHP pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
I've tried with : session_start/register ; setcookie ; global ; static
all this mode will fail !!!
I dont want to make a reconnection to the DB on every page!
In every mode in test2.php the $link is not set
Thank you
Albert
-------- TEST.PHP --------
<?
$link=pg_pconnect("dbname=gestionale user=postgres password=
port=5432");
?>
<html>
<br>TEST<br>
<?
print "Link -> $link" ;
?><br>
<a href="test2.php">Test2</a>
</html>
-------- TEST2.PHP --------
<HTML>
<?
print "Link -> " . $link ."<BR>";
print "Type of link -> " . gettype( $link ) . "<BR>";
?>
</HTML>
----------------------------
-- 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>
- Next message: AKA Hook: "[PHP-DB] PLEASE HELP! Problem with ODBC string insert"
- Previous message: David Balatero: "RE: [PHP-DB] www.oosha.com/phpdev/"
- Next in thread: Cornelia Boenigk: "Re: [PHP-DB] lost link to pgsql thru PHP pages"
- Reply: Cornelia Boenigk: "Re: [PHP-DB] lost link to pgsql thru PHP pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

