kodlarım şu şekilde
index.php
<table border="1" cellspacing="1" style="border:1.5pt solid #0000FF;" width="100%" id="AutoNumber1" fpstyle="6,011111100">
<tr>
<td width="16%"><font face="Arial Black"
size="2">Haberler</font></td>
</tr>
<?php
include("connect.php");
$sql = mysql_query ("SELECT * FROM `admin` ORDER BY `id` ASC");
while ($liste = mysql_fetch_array($sql)) {
?>
<tr>
<td width="16%"><font face="verdana" size="2"><b><? echo "$liste[0]"; ?></b></font> </td>
<td width="16%"><font face="verdana" size="2"><b><? echo "$liste[1]"; ?></b></font><input name="Sil" type="button" onClick="location.href='delete.php'" value="Sil"> </td>
</tr>
<?
}
?>
</table>delete.php<?php
include("connect.php");
$id = mysql_query ("SELECT * FROM `admin` ORDER BY `id` ASC");
$sql="delete from admin where haberekle='id'";
mysql_query("$sql");
?>