php-db | 2000121
Date: 12/13/00
- Next message: Chris: "RE: [PHP-DB] Whats happening?!"
- Previous message: Rasmus Resen Amossen: "[PHP-DB] Whats happening?!"
- In reply to: Rasmus Resen Amossen: "[PHP-DB] Whats happening?!"
- Next in thread: Chris: "RE: [PHP-DB] Whats happening?!"
- Reply: Chris: "RE: [PHP-DB] Whats happening?!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
in the fuction, globalize the database connection, that will resolve your
issue. Unlike MySQL connections, PostgreSQL connections are not
automatically available in functions.
$database=pg_connect("whatever");
function Something() {
global $database;
}
As far as integrating this into PHP like it is with MySQL.. would be nice.
Dave
-----Original Message-----
From: Rasmus Resen Amossen [mailto:spunk <email protected>]
Sent: Wednesday, December 13, 2000 8:31 PM
To: php-db <email protected>
Subject: [PHP-DB] Whats happening?!
I'm having troubles with when I opens a PostgreSQL connection in two or
more functions after another: It can't find it's ressouce and says:
1 is not a valid PostgreSQL link resource
I can see that several others has submitted this bug, but all bugreports
is marked as "Open". Is anyone working to fix that bug?
-- Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen Jagtvej 120, 2. 239 | http://www.math.ku.dk/muh 2200 Kbh. N | http://w1.1444.telia.com/~u144400001-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Chris: "RE: [PHP-DB] Whats happening?!"
- Previous message: Rasmus Resen Amossen: "[PHP-DB] Whats happening?!"
- In reply to: Rasmus Resen Amossen: "[PHP-DB] Whats happening?!"
- Next in thread: Chris: "RE: [PHP-DB] Whats happening?!"
- Reply: Chris: "RE: [PHP-DB] Whats happening?!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

