pg_pconnect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux