query($sql4); //deleting from profile2standardpermissions table $sql5 = "delete from profile2standardpermissions where profileid=".$del_id; $adb->query($sql5); //deleting from profile2field $sql6 ="delete from profile2field where profileid=".$del_id; $adb->query($sql6); //deleting from profile2utility $sql7 ="delete from profile2utility where profileid=".$del_id; $adb->query($sql7); //updating role2profile $sql8 = "update role2profile set profileid=".$tran_id." where profileid=".$del_id; $adb->query($sql8); //delete from profile table; $sql9 = "delete from profile where profileid=".$del_id; $adb->query($sql9); header("Location: index.php?module=Users&action=ListProfiles"); ?>