fwtrash/pages/knochen.php
2024-03-29 15:47:35 +01:00

23 lines
427 B
PHP

<?php
require_once __DIR__ . '/../inc/db.inc.php';
$tpl['file'] = 'knochen.twig';
$res = $db->query(<<<SQL
SELECT
type, id, title, solution, origin
FROM ft_knochen
ORDER BY id
SQL)->fetchAll($db::FETCH_GROUP);
$tpl['data'] = [
'types' => [
'nimm' => 'Nimm Knochen weg',
'lege' => 'Lege Knochen um'
],
'knochen' => [
'nimm' => $res['nimm'],
'lege' => $res['lege']
]
];