<?php error_reporting(E_ERROR | E_PARSE); include '../../helper/db_connect.php'; connect_database(); $id = $_GET["id"]; $organization_id = $_GET["organization_id"]; del_organization($id, $organization_id); header('Location:' . $_SERVER['HTTP_REFERER']); ?>
function del_old_organization($id) { $organizationAddrs = get_person_organization_all($id); while ($organizationAddr = mysql_fetch_assoc($organizationAddrs)) { del_organization($id, $organizationAddr['ORGANIZATION_ID']); set_updatetime($id); } }