The PDO class has the connection to the sql-server and returns PDOStatements, either executed or that can be executed later.
PDOStatements can either first be prepared and then executed, simply queried without preparing it (i.e. not binding any data to the statement).
After successfully executing a statement, the result can the be fetched from the PDOStatment with any of the "fetch" methods:
- fetch
- fetchAll