Fancy new display
Posted: Sun Oct 16, 2011 9:44 am
Hi,
I'm currently making a news section. With this code I have a nice, pretty standard, output:
Ok, this is just plain text output, with a line underneath each item. But I saw this site: http://stabyourself.net/ and I think that their news display (with the date and title) looked really good. And I want something similar. Does anyone have a nice link of a tutorial, or can someone explain it here?
I'm currently making a news section. With this code I have a nice, pretty standard, output:
Code: Select all
<?php
require_once("connect.php"); //Voor de connectie met de database.
$select = "SELECT * FROM nieuws ORDER BY Id DESC";
$query = mysql_query($select) or die(mysql_error());
while ($list = mysql_fetch_object($query))
{
echo "<b>Datum: </b>$list->datum<br/>";
echo "<b>Bericht: </b>$list->bericht<br/>";
echo "<b>Auteur: </b>$list->auteur<br/>";
echo "<img src=\"images/line-nieuws.jpg\"><br/><br/>";
}
?>