This class extends the PDO class to add a one-stop prepared query method.
require_once 'PDOQuery.php';
$pdo = new PDOQuery($dsn, $user, $pass);
$stmt = $pdo->preparedQuery(
'SELECT * FROM my_table WHERE first_name=:first AND last_name=:last',
array(':first' => 'John', ':last' => 'Doe');
);
while($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
// . . .
}