PHP-Code:
<?php
$dbserver = "localhost";
$dbname = "";
$dbuser = "";
$dbpass = "";
$connect = mysql_connect($dbserver, $dbuser, $dbpass);
mysql_select_db($dbname, $connect);
$result = mysql_query("SELECT *, UNIX_TIMESTAMP(datum) as termin FROM almuth ORDER BY datum DESC");
if($result)
{
echo "<table width='1000' cellspacing='1'>\n";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td bgcolor='#006633'>" . strftime("%d.%m.%Y",$row[termin]) . "</td><td bgcolor='#006633'>" . $row[titel] . "</td><td bgcolor='#006633'>" . $row[zeit] . "</td><td bgcolor='#006633'>" . $row[genre] . "</td><td bgcolor='#006633'>" . $row[kontakt] . "</td>";
echo "</tr>\n";
}
echo "</table>\n";
mysql_free_result($result);
}
?>
Meine Daten oben dbuser und so habe ich mit Absicht rausgenommen.
Kommentar