Location: PHPKode > projects > Mozart > Mozart-0.0.4/deletecnt.php
<?
// called from: contactlist.php
// description: deletes all entries associated with a given CONTACT
//
include("connect.inc");
include("reqlogin.inc");

$DelContactSQL = "DELETE FROM contact WHERE contact_id=$id";
$DelPhoneSQL = "DELETE FROM phone WHERE fk_contact_id=$id";
$DelAddressSQL = "DELETE FROM address where fk_contact_id=$id";

$DelContact = mysql_query($DelContactSQL);
$DelPhone   = mysql_query($DelPhoneSQL);
$DelAddress = mysql_query($DelAddressSQL); 

$Message="Contact Deleted";
include("contactlist.php");
?>
Return current item: Mozart