Re: mysql to postgres migration blues...

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

 



On Thu, 23 Sep 2004 22:27:38 +0400, M Saleh EG <m.saleh.eg@xxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux