fork download
  1. <?php
  2.  
  3. class Mapper
  4. {
  5. private $DBH;
  6.  
  7. public function __construct(PDO $DBH)
  8. {
  9. $this->DBH = $DBH;
  10. }
  11.  
  12. public function getTimers()
  13. {
  14. $STH = $this->DBH->prepare("SELECT * FROM mainTable");
  15.  
  16. $STH->execute();
  17. }
  18. }
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
Standard output is empty