<?php
mysql_connect("xxx", "xxx", "xxxx");
mysql_select_db("xxxx");
$ergebnis = mysql_query("SELECT * FROM sendeplan3 ORDER BY ID")or die(mysql_error());
$i = 0;
$zeit1 = "12-14";
$zeit2 = "14-16";
$zeit3 = "16-18";
$zeit4 = "18-20";
$zeit5 = "20-22";
$zeit6 = "22-0";
echo '<table border="1"><tr>';
echo '<th>' . Uhrzeit . '</th>';
echo '<th>' . Montag . '</th>';
echo '<th>' . Dienstag . '</th>';
echo '<th>' . Mittwoch . '</th>';
echo '<th>' . Donnerstag . '</th>';
echo '<th>' . Freitag . '</th>';
echo '<th>' . Samstag . '</th>';
echo '<th>' . Sonntag . '</th>';
echo '</tr>';
while ($zeile = mysql_fetch_assoc($ergebnis)){
echo '<tr><td>' . $zeit2 . '</td><td>' . $zeile['14mo'] . '</td><td>' . $zeile['14di'] . '</td><td>' . $zeile['14mi'] . '</td><td>' . $zeile['14do'] . '</td><td>' . $zeile['14fr'] . '</td><td>' . $zeile['14sa'] . '</td><td>' . $zeile['14so'] . '</td>';
echo '<tr><td>' . $zeit3 . '</td><td>' . $zeile['16mo'] . '</td><td>' . $zeile['16di'] . '</td><td>' . $zeile['16mi'] . '</td><td>' . $zeile['16do'] . '</td><td>' . $zeile['16fr'] . '</td><td>' . $zeile['16sa'] . '</td><td>' . $zeile['16so'] . '</td>';
echo '<tr><td>' . $zeit4 . '</td><td>' . $zeile['18mo'] . '</td><td>' . $zeile['18di'] . '</td><td>' . $zeile['18mi'] . '</td><td>' . $zeile['18do'] . '</td><td>' . $zeile['18fr'] . '</td><td>' . $zeile['18sa'] . '</td><td>' . $zeile['18so'] . '</td>';
echo '<tr><td>' . $zeit5 . '</td><td>' . $zeile['20mo'] . '</td><td>' . $zeile['20di'] . '</td><td>' . $zeile['20mi'] . '</td><td>' . $zeile['20do'] . '</td><td>' . $zeile['20fr'] . '</td><td>' . $zeile['20sa'] . '</td><td>' . $zeile['20so'] . '</td>';
echo '<tr><td>' . $zeit6 . '</td><td>' . $zeile['22mo'] . '</td><td>' . $zeile['22di'] . '</td><td>' . $zeile['22mi'] . '</td><td>' . $zeile['22do'] . '</td><td>' . $zeile['22fr'] . '</td><td>' . $zeile['22sa'] . '</td><td>' . $zeile['22so'] . '</td>';
if (6 == ($index % 7)) {
echo '</tr><tr>';
}
$index++;
}
echo '</tr></table>';
mysql_close();
?>
$tick = '<img src='tick.jpg'>';
$cross = '<img src='cross.jpg'>';
echo '...' . ($zeile['14mo'] ? $tick : $cross ) . '...';
We use essential cookies to make this site work, and optional cookies to enhance your experience.