I've got what seems like a zillionth question about the mysql & PDO. I've given myself a task on how to start using PDO instead of the old mysql* PHP functions.
It's little difficult to explain but I'm after making the site as efficient as possible (from the PHP perspective anyway). I've found bunch of good tutorials about the MySQL PDO but I haven't succeeded in finding a solution to this.
Let's assume I want to regularly query various tables for all data they contain; for that purpose I intend to set up a function with one argument - name of the table to query: Something like this: