prepare($query); if($sth) { $res = $sth->execute(); $result = $sth->fetchrow_hash(); $back = $result["table_on"]; $back_t = $result["contact_type"]; } else { PRINT "Could not prepare query: ".$sth->errstr."
\n"; } $query = "DELETE FROM contacts WHERE (ID = $ID)"; $result = $adb->dbh_do($query); logevent($back, "contacts", 4, "contacts", "$IRMName removed contact $ID"); if ($back_t == 1) { header("Location: $USERPREFIX/customers/info.php?ID=$back"); } else { header("Location: $USERPREFIX/customers/info.php?ID=$back"); } ?>