View Single Post
Er dette riktig?

Kode

<?php
	$sql = "SELECT * FROM nyheter ORDER BY id DESC LIMIT 0,10"
	$counter = 1; 
	$result = mysql_query($sql) or die(mysql_error());
	while($row = mysql_fetch_array($result)) {
		echo "<table>";
			echo "<tr><td colspan=\"2\">Siste nyheter</td></tr>";
			echo "<tr><td>$counter</td><td>".substr($_row['nyhetekst'], 0, 70)."...</td></tr>";
		echo "</table>";
	}
	
?>