if ($check_product == 1) {
        $info = array('company_id' => $_POST['company_id'], 'product_category_id' => $_POST['product_category_id'], 'product_details_id' => $_POST['product_details_id'], 'article_no' => $_POST['jeans_article_no'], 'article_price' => $_POST['jeans_article_price'], 'our_price' => $_POST['jeans_our_price'], 'total_quantity' => $_POST['jeans_total_quantity'], 'jeans_qty' => $_POST['jeans_qty']);
    }
    if ($check_product == 2) {
        $info = array('company_id' => $_POST['company_id'], 'product_category_id' => $_POST['product_category_id'], 'product_details_id' => $_POST['product_details_id'], 'article_no' => $_POST['shirt_article_no'], 'article_price' => $_POST['shirt_article_price'], 'our_price' => $_POST['shirt_our_price'], 'total_quantity' => $_POST['shirt_total_quantity'], 'shirt_qty' => $_POST['shirt_qty']);
    }
    if ($check_product == 3) {
        $info = array('company_id' => $_POST['company_id'], 'product_category_id' => $_POST['product_category_id'], 'product_details_id' => $_POST['product_details_id'], 'article_no' => $_POST['capri_article_no'], 'article_price' => $_POST['capri_article_price'], 'our_price' => $_POST['capri_our_price'], 'total_quantity' => $_POST['capri_total_quantity'], 'capri_qty' => $_POST['capri_qty']);
    }
    if ($check_product == 4) {
        $info = array('company_id' => $_POST['company_id'], 'product_category_id' => $_POST['product_category_id'], 'product_details_id' => $_POST['product_details_id'], 'article_no' => $_POST['under_garments_article_no'], 'article_price' => $_POST['under_garments_article_price'], 'our_price' => $_POST['under_garments_our_price'], 'total_quantity' => $_POST['under_garments_total_quantity'], 'under_garments_qty' => $_POST['under_garments_qty']);
    }
    if ($check_product == 5) {
        $info = array('company_id' => $_POST['company_id'], 'product_category_id' => $_POST['product_category_id'], 'product_details_id' => $_POST['product_details_id'], 'article_no' => $_POST['others_article_no'], 'article_price' => $_POST['others_article_price'], 'our_price' => $_POST['others_our_price'], 'total_quantity' => $_POST['others_total_quantity'], 'product_name' => $_POST['others_product_name']);
    }
    $response = $db->updateArticle($info);
    if ($response['status'] == 200) {
        $flag = true;
    }
}
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Chanchal Garments</title>
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="assets/css/animate.css" rel="stylesheet">
    <link href="assets/css/jquery.gritter.css" rel="stylesheet">