PHP-Code:
<?
$sql = "SELECT * FROM news Where gdatum < now() ORDER BY ID DESC;";
$result = mysql_query($sql) OR die(mysql_error());
while($row = mysql_fetch_assoc($result) ){
<br><br>
<div align="left">
<table border="0" height="37" cellpadding="2">
<tr>
<td width="600" colspan="2" ></td>
</tr>
<?
$sql = "SELECT * FROM news Where gdatum >= now() ORDER BY ID DESC;";
$result = mysql_query($sql) OR die(mysql_error());
while($row = mysql_fetch_assoc($result) ){
?>
<tr>\n";
<td width="40"></td>\n";
<td width="560">\n";
<font size="1"><a href="index2.php?section=aktuelles§ion2=news&ID=<? echo "".$row['ID'].""; ?>"><font color="#666666">"<? echo "".$row['thema'].""; ?></font><br></a>\n";
</td>\n";
</tr>\n";
<?
};
?>
</table
</div>
$sql = "SELECT * FROM news Where gdatum>=now() ORDER BY ID DESC;";
Kommentar