session_start(); require 'includes/dbconnect.php'; include 'includes/functions.php'; //aktive Seite im Menü festlegen $menuLevel1="Toerns"; $menuLevel2="Blog"; $mytoeid = 19; if($_REQUEST['toeid']) $mytoeid = $_REQUEST['toeid']; //Toern auslesen $toernResult = mysql_query(" SELECT toe_id AS toe_id, toe_year AS toe_year, toe_route AS toe_route, toe_video AS toe_video, toe_oldTagebuch AS toe_oldTagebuch, toe_oldRoute AS toe_oldRoute FROM t_toern WHERE toe_id=$mytoeid"); $toernRow = mysql_fetch_object($toernResult); //Tage auslesen $result = mysql_query(" SELECT day_id AS day_id, DATE_FORMAT(day_date,'%e.%m.%Y') AS day_datef, day_name AS day_name, day_route AS day_route, day_description AS day_description, day_picture AS day_picture, day_visible AS day_visible FROM t_day WHERE day_toern='$mytoeid' AND day_visible=1 ORDER BY day_date"); ?>