Re: mysql to postgres migration blues...

From: Date: Thu, 23 Sep 2004 18:51:52 +0000
Subject: Re: mysql to postgres migration blues...
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-36365@lists.php.net to get a copy of this message
On Thu, 23 Sep 2004 22:27:38 +0400, M Saleh EG <m.saleh.eg@gmail.com> wrote: > define the connection object as a global var in ur function > > function ( params) > { > global $ur_connection_obj; > ... > ... > Damn you guys are quick! I like this list... declaring it as global didn't seem to work - global $link; /* Connect to database */ $link = pg_connect("dbname=movies host=localhost user=anton password=password") or die("Could not connect : " . pg_result_error($link)); still didn't get it but passing it to the function did. I'll get there, but I pretty much copied and pasted all the php up until now so I have a little way to go... Cheers Antoine -- G System, The Evolving GUniverse - http://www.g-system.at

« previous php.db (#36365) next »