Hallo ich habe einige Ralleys laufen und habe sie auch da zu bringen könnnen Rot oder Grün zu sein
Aber nur die Ralley die eine Start und Endzeit haben.
Bei ralleys wie zu bsp. die Mailralley wo das Ende erst nach einer bestimmten anzahl von bestätigten Mails zuende ist, habe ich probleme.
Und bei des Samstagsralley die ja nur jeden Samsta stattfindet geht es auch nicht.
hier mal meine Ralleys
PHP-Code:
<?
// Rallys abfragen
$klicksamstag_config=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_klicksamstag_config WHERE ralley='klicksamstag_config'"));
$mailralley=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_mailralley_mac WHERE ralley='mailralley'"));
$refralley=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_ralleydaten WHERE ralley='refralley'"));
$klick=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_ralleydaten WHERE ralley='klickralley'"));
$tklickrally=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_neu_rallydaten WHERE ralley='tklickrally'"));
$mklickrally=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_neu_rallydaten WHERE ralley='mklickrally'"));
$find_ralley=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_ralleydaten WHERE ralley='find_ralley'"));
$kasgame=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_ralleydaten WHERE ralley='kgameralley'"));
$taggame=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_ralleydaten WHERE ralley='tgameralley'"));
$taggame1=mysql_fetch_array(mysql_query("SELECT start, ende, ralley FROM ".$db_prefix."_ralleydaten WHERE ralley='tgameralley1'"));
?>
<?menuehead("Unsere Rallys");?>
<img src="images/Balloon.ico" border="0" alt=""> <a href="?content=/ralleys/tournament">Tournament</a><br>
<img src="images/Balloon.ico" border="0" alt=""> <a href="?content=/ralleys/werber_ralley">Werberalley</a><br>
<img src="images/Balloon.ico" border="0" alt=""> <a href="?content=/rat_race/rat_race">Rat-Race</a><br>
<img src="images/Balloon.ico" border="0" alt=""> <a href="?content=/ralleys/klick">Klickralley</a><br />
<img src="images/Balloon.ico" border="0" alt=""> <a href="?content=/ralleys/aktiv">Aktivrally</a><br />
<img src="images/Balloon.ico" border="0" alt=""> <a href="?content=/ralleys/mailralley_kw">Mailrally</a></font></a><br>// die geht nicht
<a href="?content=/ralleys/klicksamstag">
<? if ($klicksamstag_config[ende]>= time() and $klicksamstag_config[start]<= time()){echo"<font color=green>";} else{echo"<font color=red>";}?>
<img src="images/Balloon.ico" border="0" alt=""> Klicksamstag</a></font></a><br>
<a href="?content=/ralleys/ref">
<? if ($refralley[ende]>= time() and $refralley[start]<= time()){echo"<font color=green>";} else{echo"<font color=red>";}?>
<img src="images/Balloon.ico" border="0" alt=""> Refrally</a><br></font></a>
<a href="?content=/ralleys/tklickrally">
<? if ($tklickrally[ende]== '1'){echo"<font color=green>";} else{echo"<font color=red>";}?>
<img src="images/Balloon.ico" border="0" alt=""> Tages Klick-Rally</a><br>
<a href="?content=/ralleys/mklickrally">
<? if ($mklickrally[ende]== '1'){echo"<font color=green>";} else{echo"<font color=red>";}?>
<img src="images/Balloon.ico" border="0" alt=""> Monats Klick-Rally</a><br></font></a>
<a href="?content=/ralleys/find">
<? if ($find_ralley[ende]>= time() and $find_ralley[start]<= time()){echo"<font color=green>";} else{echo"<font color=red>";}?>
<img src="images/Balloon.ico" border="0" alt=""> Find den Kasper Ralley</font></a><br>
<a href="?content=/ralleys/taggame">
<? if ($taggame[ende]>= time() and $taggame[start]<= time()){echo"<font color=green>";} else{echo"<font color=red>";}?>
<img src="images/Balloon.ico" border="0" alt=""> Tagesgameralley</font></a><br>
<a href="?content=/ralleys/kasgame">
<? if ($kasgame[ende]>= time() and $kasgame[start]<= time()){echo"<font color=green>";} else{echo"<font color=red>";}?>
<img src="images/Balloon.ico" border="0" alt=""> KasperRalley</font></a><br>
<a href="?content=/ralleys/taggame1">
<? if ($taggame1[ende]>= time() and $taggame1[start]<= time()){echo"<font color=green>";} else{echo"<font color=red>";}?>
<img src="images/Balloon.ico" border="0" alt=""> Morningameralley</font></a><br>
<?menuefoot();?>
seid bitte mal so nett und sagt mir wie ich es hinbekomme