On Thu, 23 Sep 2004 22:27:38 +0400, M Saleh EG <[EMAIL PROTECTED]> 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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to