Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('group_delete') || if_group("superadmin")) { //access allowed } else { echo "access denied"; return; } //get the http value and set as a variable $id = check_str($_GET["id"]); //delete the group $sqldelete = "delete from v_groups "; $sqldelete .= "where domain_uuid = '$domain_uuid' "; $sqldelete .= "and group_uuid = '$id' "; if (!$db->exec($sqldelete)) { //echo $db->errorCode() . "
"; $info = $db->errorInfo(); print_r($info); // $info[0] == $db->errorCode() unified error code // $info[1] is the driver specific error code // $info[2] is the driver specific error string } //redirect the user header("Location: groups.php"); ?>