fork download
  1. <?php
  2.  
  3. public function getAllData($code)
  4. {
  5. $STH = $this->DBH->prepare("SELECT id, fullname, company FROM data WHERE data.code = :code");
  6.  
  7. $STH->bindValue(":code", $code);
  8. $STH->execute();
  9.  
  10. $result = $STH->fetchAll(PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, "Workers");
  11.  
  12. return $result;
  13. }
Runtime error #stdin #stdout #stderr 0.02s 24400KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected 'public' (T_PUBLIC) in /home/lajTAT/prog.php on line 3