lost link to pgsql thru PHP pages

From: Date: Sun, 15 Jul 2001 22:07:13 +0000
Subject: lost link to pgsql thru PHP pages
Groups: php.db 
Request: Send a blank email to php-db+get-10416@lists.php.net to get a copy of this message
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> ----------------------------

« previous php.db (#10416) next »