From: sector119@mail.ru
To: pgsql-php@postgresql.org
Subject: pg_pconnect
Date: Fri, 27 Dec 2002 11:09:02 +0200
Message-ID: <20021227090902.GA2637@city.gov.te.ua> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: sector119@mail.ru
Subject: Re: pg_pconnect
In-Reply-To: <20021227090902.GA2637@city.gov.te.ua>
References: <20021227090902.GA2637@city.gov.te.ua>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox