RE: using pg_query in a function not working

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

 



Thanks! Sometimes I'm blind.

-----Original Message-----
From: Jim Lucas [mailto:lists@xxxxxxxxx] 
Sent: Friday, August 05, 2011 1:01 PM
To: Marc Fromm
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  using pg_query in a function not working

On 8/5/2011 12:08 PM, Marc Fromm wrote:
> 
> I have to sql statements in functions to use in my code. Even though the echo statements show the sql is valid the sql does not seem to execute and I get the error, "PHP Warning:  pg_fetch_object() expects parameter 1 to be resource, boolean given in . . . line 154 . . ."
> Line 154: while($val = pg_fetch_object($student))
> 

$conn is not in scope

> 
> Marc Fromm
> Information Technology Specialist II
> Financial Aid Department
> Western Washington University
> Phone: 360-650-3351
> Fax:   360-788-0251
> 



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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux