First off. I've been away from coding for about 6 months. So, I'm relearning a lot of stuff I've already learned. This is what happens when you're a jack of all trades and master of none.
I've been working on a web site that I'm implementing for the first time PDO. I'm really not that well versed with OOP, but I understand the basics of what it is. I'm using the David Soussan PDO singleton class that I dug up on this site to handle the queries.
This class seems to make most queries pretty easy to implement. I'm not sure if I understand everything it exactly does as I said I'm relearning. It uses fetchAll(PDO::FETCH_ASSOC) when selecting data. Is this ok to use if I run a query I know I'll get one row back? I was reading somewhere that fetch was more efficient for single queries, but I might have it wrong.
It seems that it should be ok, since I'm using this for other select queries that will have more than one row returned.
Anyway, thanks for any help offered.