RE: [PHP] using pg_query in a function not working

2011-08-05 Thread Marc Fromm
Thanks! Sometimes I'm blind. -Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Friday, August 05, 2011 1:01 PM To: Marc Fromm Cc: php-general@lists.php.net Subject: Re: [PHP] using pg_query in a function not working On 8/5/2011 12:08 PM, Marc Fromm wrote: > >

Re: [PHP] using pg_query in a function not working

2011-08-05 Thread Jim Lucas
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 giv

[PHP] using pg_query in a function not working

2011-08-05 Thread Marc Fromm
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 =