<?php class texte{ private $db; public function __construct(){ global $datenbank; $this->db = $datenbank; } public function AWerbung($werbung){ $row = $this->db->get_row("SELECT text FROM ". PREFIX . TEXTE ." WHERE name = 'awerbung' "); $row = json_decode($row[0]); return $row->$werbung; } }