Jeg fandt lige det her, det kan du måske arbejde videre udfra
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM velocity_news LIMIT 3";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
echo "<b><center>news</center></b><br><br>";
$i=0;
while ($i < $num) {
$news=mysql_result($result,$i,"news");
$date=mysql_result($result,$i,"date");
$topic=mysql_result($result,$i,"topic");
echo "News for $date<br>";
echo "<b>$topic</b><br>";
echo "$news<br><br><br><br>";
++$i;
}