Frank: will net löschen

Beitrag lesen

weis einer, wieso der nicht löschen möchte ????
weis net wo der fehler ist, kann mir jemand helfen ?
der macht dann gar nix!
glaub die 1.if anweisung ist falsch!

<?
    if(isset($_POST['loeschen']) == true) {
      $sql = "DELETE * FROM news WHERE ID = '$id'";
      mysql_query($sql) or die(mysql_error());
      HEADER ("LOCATION:index.php?action=shownews");
    }

$sql = "SELECT * FROM news ORDER BY Datum DESC;";
  $result = mysql_query($sql) or die(mysql_error());
  $search = array(':)', ':D', ':angel:', ':jump:', ':(', '8)');
  $replace = array('<img src="bilder/smile.gif">', '<img src="bilder/biggrin.gif">', '<img src="bilder/angel.gif">', '<img src="bilder/bounce.gif">', '<img src="bilder/mad.gif">', '<img src="bilder/cool.gif">');

while($row = mysql_fetch_array($result)) {
  $days = date("d.m.y", $row['Datum']);
  $time = date("H:i", $row['Datum']);
  $text = str_replace($search, $replace, $row['Inhalt']);
      echo "<table align=center width=40%>
            <tr>
            <td width=75% id=hor><b>".$row['Titel']."</b></td>
            <td id=hor>".$time. "-". $days."</td>
            </tr>
            <tr>
            <td colspan=2>".nl2br($text)."</td>
            </tr>
            </table>
            <table width=40% align=center>
            <tr>
            <td align=left><font color=green>#".$row['ID']."</font> posted by ";
            if(trim($row['Email']) == "") {
                echo $row['Autor'];
            } else {
                echo "<a href="mailto:".$row['Email']."">".$row['Autor']."</a>";
            }
            echo"</td><td align=right><font color=blue>[Kommentare[Anzahl]]</font>   <font color=red>[Change]   
»»so , hier ist der Link zum löschen!!
<a href="index.php?action=shownews&&loeschen=true&id=".$row['ID']."">[Delete]</a></font></td>
            </tr>
            </table><br>";
  }

?>