From: | GOLDBERG <jcg(at)belbone(dot)be> |
---|---|
To: | sector119(at)mail(dot)ru |
Cc: | pgsql-php(at)postgresql(dot)org |
Subject: | Re: pg_pconnect |
Date: | 2002-12-27 09:16:32 |
Message-ID: | 1040980592.2639.28.camel@oracle |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
Not a problem with postgres or php : it is always stateless.
Le ven 27/12/2002 à 10:09, sector119(at)mail(dot)ru a écrit :
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
From | Date | Subject | |
---|---|---|---|
Next Message | brew | 2002-12-28 15:10:33 | Re: pg_pconnect |
Previous Message | Andrew McMillan | 2002-12-27 09:13:53 | Re: pg_pconnect+PostgreSQL cursors |