$product_mal="active"; $caller1="open"; $pro_de_mal="active"; require_once '../template/superadmin/action_connection.php' ; include("../settings/adminsession.php"); session_start(); $id=$_REQUEST['id']; $Query_last_data = "SELECT * from shop_product_malayasia where product_id='$id' "; $name_last_data=$DB->query($Query_last_data); $row_12_123=mysql_fetch_array($name_last_data); $des=trim(addslashes($row_12_123['description'])); $manufacturer_id=$row_12_123['manufacturer_id']; $tax_class_id=$row_12_123['tax_class_id']; $quantity=$row_12_123['quantity']; $vstatus=$row_12_123['vstatus']; $stock_status_id=$row_12_123['stock_status_id']; $ean=$row_12_123['ean']; $used_for=trim(addslashes($_REQUEST['used_for'])); ?> if(isset($_POST['sumbit'])) { if ($_REQUEST["form_action"] == "Insert") { if($_FILES['mast']['name']!="") {} $kk=0; $new_j_id=$_REQUEST['id']; $total_file=count($_POST['para']); date_default_timezone_set('Asia/Kolkata'); $date_ss = date('Y-m-d H:i:s ', time()); $tablename = "`tbl_doctor_appointment`"; $date=trim(addslashes($_REQUEST['date'])); $date = date("Y-m-d", strtotime($date)); $product_name=trim(addslashes($_REQUEST['product_name'])); $price=trim(addslashes($_REQUEST['price'])); $sell_price=trim(addslashes($_REQUEST['sell_price'])); $category=trim(addslashes($_REQUEST['category'])); $job_description=trim(addslashes($_REQUEST['job_description'])); $sp_ins=trim(addslashes($_REQUEST['sp_ins'])); $int_price=trim(addslashes($_REQUEST['int_price'])); $weight=trim(addslashes($_REQUEST['weight'])); $disease=0; $used_for=trim(addslashes($_REQUEST['used_for'])); $dosage=trim(addslashes($_REQUEST['dosage'])); $one_line=trim(addslashes($_REQUEST['one_line'])); $company=trim(addslashes($_REQUEST['company'])); $ean=trim(addslashes($_REQUEST['ean'])); $Query="UPDATE shop_product_malayasia SET name='". $product_name."',ean='". $ean."' WHERE `product_id`='".$_REQUEST['id']."'"; $DB->query($Query); header("location:view_product_malaysia.php?sucess=sucess"); } } ?>