When you use a PDO object and do a query, it returns a PDOStatement Object.
However, What I don't understand is, if you do print_r($s) ($r being the pdostatement) It prints out like an object, with no sign of a result.
However, you can do a foreach() on the object and loop through your results.
Can somebody explain to me whats going on?
I just wanted to do a print_r and view the array... nice and simple for testing. How can i do this?