https://www.php-resource.de/forum/sql-datenbanken/49779-mssql-mysql-php-rekursive-funktion