Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- Datensatz.php
- class Datensatz{
- private $id ;
- private$vorname ;
- private $nachname ;
- private $email ;
- private $telefon ;
- private $datum;
- public function getVorname(){
- return $this->vorname;
- }
- }
- **/
- $sth->setFetchMode(PDO::FETCH_CLASS, 'Datensatz');
- $class = $stmt->fetch();
- $class->getVorname();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement