Einzelnen Beitrag anzeigen
Alt 13.01.2006, 17:30   #1
jak
Inventar
 
Registriert seit: 13.06.2001
Beiträge: 1.830


Standard

Wenn du wirklich ALLE löschen willst kannst du TRUNCATE TABLE verwenden.
Ansonsten brauchst du nur die folgenden Zeilen:
$query = "delete from freunde where lfdnr='$dsnr'";
$rs = mysql_query($query, $conn);
mysql_close($conn);

und davor irgendwo ein $conn=mysql_connect(etc.);

jak
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona)
Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing.
\"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra)
jak ist offline   Mit Zitat antworten