ok, bear with me, i'm not quite a PHP noob but i am a PHP5 noob! haha
I know how to do prepared queries, thats fairly straights forward.
And i know about using variables to add to the queries later (cant remember what i was called) thats really cool.
Basically I've worked my way through these examples : http://wiki.cc/php/PDO_Basics
I want to make a generic SELECT function... any suggestions how to go about it? I realise it could rabildy get very complicated as soon as any joins come into it.
One thing I HATE with a passion is having SQL queries dotted around my websites. I'd like to have it all in one class if possible. If my idea of a generic function isnt the best approach, any other suggestions?