Je moet ingelogd zijn om te stemmen.
$sql = "SELECT * FROM nieuws ORDER BY id ASC"; $result = mysql_query($sql); $num = mysql_num_rows($result); while($row = mysql_fetch_array($result)){
<? $sql = "SELECT * FROM nieuws ORDER BY id DESC"; $result = mysql_query($sql) or die (mysql_error()); $num = mysql_num_rows($result); while($row = mysql_fetch_array($result)){ ?> <div class="entry"> <h2><? echo "".$row['Titel']."";?></h2> <p><? echo "".$row['NieuwsBericht']."";?></p> <div class="links">Gepost door <b><? echo "".$row['Schrijver'].""?></b> op <? echo "".$row['GeplaatstOp']."";?></div> </div> <? } ?>