Skip site navigation (1) Skip section navigation (2)

pg_pconnect

From: sector119(at)mail(dot)ru
To: pgsql-php(at)postgresql(dot)org
Subject: pg_pconnect
Date: 2002-12-27 09:09:02
Message-ID: 20021227090902.GA2637@city.gov.te.ua (view raw or flat)
Thread:
Lists: pgsql-php
Hi

<? 
echo "<html><body>\n"; 
$db = pg_pconnect("dbname=$dbname user=$user password=$dbpassword");
if (!$db)
echo "Connection can not be established!<br>\n";
else
echo "Connection established!<br>\n";
echo "<a href=\"cursor4.php\">next screen</a><br>";
echo "</body></html>";
?>

<? 
echo "<html><body>\n"; 
if ($db) 
echo "db handler is still valid!<br>\n"; 
else                                        
echo "db handler does not exist anymore!<br>\n"; 
echo "</body></html>";
?> 


when I click on next screen link I get db handler does not exist anymore! why??? 

-- 
WBR, sector119

Responses

pgsql-php by date

Next:From: Andrew McMillanDate: 2002-12-27 09:13:53
Subject: Re: pg_pconnect+PostgreSQL cursors
Previous:From: sector119Date: 2002-12-27 06:10:10
Subject: pg_pconnect+PostgreSQL cursors

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group