Hey hvordan gør jeg så den kom skriver de nyste 3 fra min mysql database
<?php
include("config.php");
$msg = "";
if(isset($_POST['Submit']))
{
$total = $_POST['total'];
$td = 0;
$i = 0;
for($i = 1; $i <= $total; $i++)
{
if(isset($_POST["d$i"]))
{
mysql_query("DELETE FROM news WHERE id=".$_POST["d$i"],$link);
$td++;
}
}
$msg = "";
}
$result = mysql_query("Select * from news ORDER BY id DESC");
$num = mysql_num_rows($result);
$n = 0;
?>
<html>
<head>
<meta http-equiv="Content-Language" content="da">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>news</title>
</head>
<body background="images/design-copy_25.jpg">
<table border="0" width="500" id="table1" style="border-collapse: collapse">
<?php while($row = mysql_fetch_array($result, MYSQL_BOTH)){
$n++;
?>
<tr>
<td width="498" colspan="3">
<p align="center"><font face="Verdana" size="2"><b><?php echo $row['over'];?></b></font></td>
</tr>
<tr>
<td width="498" colspan="3">
<p align="left"><font size="2" face="Verdana"><?php echo $row['under'];?></font></td>
</tr>
<tr>
<td width="257"><i><font size="1" face="Verdana">Skrevet af <?php echo $row['skrevt'];?></font></i></td>
<td width="159"><i><font size="1" face="Verdana"><?php echo $row['dato'];?></font></i></td>
<td width="78">
<p align="center"><u><font size="1" face="Verdana">læs mere</font></u></td>
</tr>
<tr>
<td width="257"><font size="1"> </font></td>
<td width="239" colspan="2"><font size="1"> </font></td>
</tr>
<?php
}?>
</table>
</body>
</html>