if ($errmsg == '') {
            function check_input($data)
            {
                $data = trim($data);
                $data = stripslashes($data);
                $data = htmlspecialchars($data);
                $data = mysql_real_escape_string($data);
                return $data;
            }
            $Campaignid = check_input($_POST['Campaignid']);
            $Productid = check_input($_POST['Productid']);
            $Ending_date = check_input($_POST['Ending_date']);
            $Achived_sales = check_input($_POST['Achived_sales']);
            $Achived_budget = check_input($_POST['Achived_budget']);
            $Salesobj = new Sales();
            if ($Salesobj->update_sales($Campaignid, $Productid, $Ending_date, $Achived_sales, $Achived_budget)) {
                $msg .= 'Achived Campaign Details successfully updated.<br>';
            } else {
                $errmsg .= '!Opps Some thing went wrong.<br>';
            }
        }
    }
}
$Campaignid = "";
$Productid = "";
$Ending_date = "";
$Achived_sales = "";
$Achived_budget = "";
include_once "../../includes/dbclose.inc.php";
require_once "../layouts/user_header.php";
?>