jb-data.de/scripts/touren_org.php
2025-08-11 22:23:30 +02:00

8 lines
No EOL
447 B
PHP

<?php
if(isset($_POST['tour'])) { $GLOBALS['mysql']->insert("INSERT INTO touren (tour,infotitel) VALUES('".$_POST['tour']."','".$_POST['infotitel']."')"); }
if(isset($_POST['delete'])) { $GLOBALS['mysql']->query("DELETE FROM touren WHERE id='".$_POST['delete']."'"); }
$tourenliste = $GLOBALS['mysql']->query_array("SELECT * FROM touren");
$template->assign('tourenliste', $tourenliste);
$template->assign('content', 'tpl/touren_list.tpl');
?>