Re: [PHP-DB] parameters not working under PDO

2007-11-01 Thread Chris Curvey
Ah, but the *contents* of the array are not what I thought they were...there was a leading space in "nj". Which brings me to something I've been wondering...is there a way to get the statement object to tell me EXACTLY what was sent to the database engine? Chris Curvey wrote: good thing to

Re: [PHP-DB] parameters not working under PDO

2007-10-31 Thread Chris Curvey
good thing to check...it seems to be OK. Array ( [0] => montclair [1] => nj ) Michael Preslar wrote: Check $parts.. print_r($parts) and make sure its 1) an array 2) contains 2 values On 10/31/07, Chris Curvey <[EMAIL PROTECTED]> wrote: It's quite possible that I'm missing something obvious he

Re: [PHP-DB] parameters not working under PDO

2007-10-31 Thread Michael Preslar
Check $parts.. print_r($parts) and make sure its 1) an array 2) contains 2 values On 10/31/07, Chris Curvey <[EMAIL PROTECTED]> wrote: > It's quite possible that I'm missing something obvious here. The > following code fragment does not return any rows, but if I take out the > parameters and repl

Re: [PHP-DB] parameters not working under PDO

2007-10-31 Thread Thodoris
O/H Chris Curvey ??: It's quite possible that I'm missing something obvious here. The following code fragment does not return any rows, but if I take out the parameters and replace them with hardcoded strings (enclosed in single quotes), I get the right results. I've scattered "print"