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'); ?>