Habe auf dieser Seite ein Tut für einen AV Kalender gefunden.
Die index seite mit dem Titelbild stellte auch kein Problem dar, nur kriege ich es nicht hin das die Tür vor dem besagten Datum nicht geöffnet wird.
Habe die Tür mit der entsprechenden Seite verlinkt, aber leider habe ich trotzdem vor dem Datum schon zugriff drauf.
Html Code
SQL
<body>
<p> </p>
<p> </p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="center" valign="middle" bgcolor="#F80802"><img src="images/av1.png" alt="" width="1280" height="713" usemap="#Kalender"/></td>
</tr>
<tr>
<td> </td>
</tr>
</tbody>
</table>
<map name="Kalender">
<area shape="rect" coords="23,41,100,98" href="#">
<area shape="rect" coords="163,45,239,100" href="#">
<area shape="rect" coords="304,43,366,98" href="#">
<area shape="rect" coords="26,219,89,274" href="#">
<area shape="rect" coords="174,175,241,233" href="#">
<area shape="rect" coords="124,306,175,367" href="#">
<area shape="rect" coords="28,431,91,490" href="#">
<area shape="rect" coords="243,351,320,409" href="#">
<area shape="rect" coords="373,276,441,338" href="#">
<area shape="rect" coords="912,33,976,90" href="#">
<area shape="rect" coords="1110,40,1189,98" href="#">
<area shape="rect" coords="1010,126,1093,180" href="#">
<area shape="rect" coords="1125,227,1209,283" href="#">
<area shape="rect" coords="817,226,896,279" href="#">
<area shape="rect" coords="913,315,978,372" href="#">
<area shape="rect" coords="270,470,358,532" href="#">
<area shape="rect" coords="111,616,188,672" href="#">
<area shape="rect" coords="330,611,403,668" href="#">
<area shape="rect" coords="580,586,645,653" href="#">
<area shape="rect" coords="812,420,888,475" href="#">
<area shape="rect" coords="827,620,885,676" href="#">
<area shape="rect" coords="940,534,1018,601" href="#">
<area shape="rect" coords="1155,508,1244,567" href="#">
<area shape="rect" coords="1105,614,1196,674" href="1.php" target="new" alt="Tag1">
</map>
</body>
</html>
Alles anzeigen
Code 1.php
SQL
<?php
date_default_timezone_set('Europe/Berlin');
$heute = date("20161109");
$adventstag=date("20161109", mktime(0, 0, 0, 11, 9, 2016));
if ($adventstag>$heute)
{
echo "<p>Sie sind leider etwas zu früh dran.</p>";
}
if ($adventstag<=$heute)
{
}
Alles anzeigen
Link zum Kalender Tür 1 ist zur Zeit nur verlinkt.
Da ich php Anfänger bin, verzweifle ich gerade etwas
Vielleicht kann mir jemand helfen.
Danke