How do I refactor this to work with pdo?

Printable View