Das für die db abfrage
PHP-Code:
<?
$slotofweek = mysql_fetch_array (db_query ('SELECT * FROM stg_ralleyconfig WHERE name = "slotofweek" LIMIT 1'));
?>
Das für die Anzeige

PHP-Code:
<td align="left" valign="top"><? if ($slotofweek[ende]>= time() and $slotofweek[start]<= time()){echo"<img src='images/gruen.gif' alt='on' border='0'>";} else{echo"<img src='images/rot.gif' alt='off' border='0'>";}?>
&nbsp;<a href="?content=/ralleys/slotofweek">Slot of Week</a> </td>