Re: [PHP] no array passed error

2008-06-03 Thread Ted Wood
PJ, I remember the days when this stuff seemed beyond mystical. 1. $dbh and $query are not "built-in" variables... but they need to be defined somewhere earlier in the code. That could even be in a different file if the file you're in has been included. 2. One trick to try is to use the php

Re: [PHP] no array passed error

2008-06-03 Thread Nathan Nobbe
On Tue, Jun 3, 2008 at 4:28 PM, PJ <[EMAIL PROTECTED]> wrote: > I don't know if this is the right list, it seems php and postgresql are > rather interdependent in the webside I am debugging :(, but here goes: > > I'm getting this error: > pg_execute() [function.pg-execute]: No > array passedE_

[PHP] no array passed error

2008-06-03 Thread PJ
I don't know if this is the right list, it seems php and postgresql are rather interdependent in the webside I am debugging :(, but here goes: I'm getting this error: pg_execute() [function.pg-execute]: No array passedE_WARNING for this line of code: if( !($r=pg_execute($dbh, $query)) )