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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to