8 lines
No EOL
447 B
PHP
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');
|
|
?>
|