Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
$_language = array ("1"=>"Januar",
"2"=>"Februar",
"3"=>"März",
"4"=>"April",
"5"=>"Mai",
"6"=>"Juni",
"7"=>"Juli",
"8"=>"August",
"9"=>"September",
"10"=>"Oktober",
"11"=>"November",
"12"=>"Dezember");
echo "<table width='80%' border='1' cellspacing='0' cellpadding='0' >";
for ($i = 1; 12 >= $i; $i++)
{
echo "
<tr>
<td height='40' valign='top'>
".$_language[$i]."<br />";
//Abfrage
$query=mysql_query("SELECT * FROM kalender where vormonat='".$i."'");
while($row->mysql_fetch_object($query)) {
$row->id;
}
}
$_language = array ("1"=>"Januar",
"2"=>"Februar",
"3"=>"März",
"4"=>"April",
"5"=>"Mai",
"6"=>"Juni",
"7"=>"Juli",
"8"=>"August",
"9"=>"September",
"10"=>"Oktober",
"11"=>"November",
"12"=>"Dezember");
echo "<table width='80%' border='1' cellspacing='0' cellpadding='0' >";
for ($i = 1; 12 >= $i; $i++)
{
$query=mysql_query("SELECT * FROM kalender where vormonat='".$i."'");
$count=mysql_num_rows($query);
echo "
<tr>
<td height='40' valign='top'>";
if(!empty($count)) {
echo $_language[$i]."<br />";
}
//Abfrage
$query=mysql_query("SELECT * FROM kalender where vormonat='".$i."'");
while($row->mysql_fetch_object($query)) {
$row->id;
}
}
<?
$_language = array ("1"=>"Januar",
"2"=>"Februar",
"3"=>"März",
"4"=>"April",
"5"=>"Mai",
"6"=>"Juni",
"7"=>"Juli",
"8"=>"August",
"9"=>"September",
"10"=>"Oktober",
"11"=>"November",
"12"=>"Dezember");
echo "<table width='80%' border='1' cellspacing='0' cellpadding='0' >";
for ($i = 1; $i<=12; $i++)
{
echo "
<tr>
<td height='40' valign='top'>
".$_language[$i]."<br />";
$monat = $_language[$i];
$db = mysql_connect("localhost","root","");
$res = mysql_db_query("test", "select vonmonat,id from t_kalender_monat WHERE vonmonat = '$monat' ") or die (mysql_error());
$num = mysql_num_rows($res);
for ($x=0; $x<$num; $x++)
{
$id = mysql_result($res, $x, "id");
$vonmonat = mysql_result($res, $x, "vonmonat");
echo $vonmonat;
echo $id;
}
echo "
</td>
</tr>
";
}
echo "</table>";
?>
CREATE TABLE `t_kalender_monat` (
`id` int(11) NOT NULL auto_increment,
`titel` varchar(255) collate latin1_general_ci NOT NULL default '',
`vontag` varchar(255) collate latin1_general_ci NOT NULL default '',
`vonmonat` varchar(255) collate latin1_general_ci NOT NULL default '',
`vonjahr` varchar(255) collate latin1_general_ci NOT NULL default '',
`bistag` varchar(255) collate latin1_general_ci NOT NULL default '',
`bismonat` varchar(255) collate latin1_general_ci NOT NULL default '',
`bisjahr` varchar(255) collate latin1_general_ci NOT NULL default '',
PRIMARY KEY (`id`)
)