Site icon Hip-Hop Website Design and Development

The best way to Save settings of customized tab product web page in admin facet in a database?

enter image description here

I’ve following code :

                    <tr>
                        <th><?php _e('Customized Inventory Message'); ?></th>
                             <td>
                                <enter kind="textual content" title="customstock-msg"  worth=""/>
                             </td>
                    </tr>

                    <tr>
                        <th><?php _e('Order Processing Time'); ?></th>
                             <td>

                               <enter kind="textual content" title="customstock-Processing-time">
                             </td>
                    </tr>

                    <tr>
                        <th><?php _e('Instock Date'); ?></th>
                             <td>
                               <!-- <enter kind="date" title="customstock-date"  worth=""/>-->
                               <enter kind="textual content" id="datepicker" title="customstock-instockdate">
                             </td>
                    </tr>

                    <tr>
                        <th><?php _e('Present Amount when Instock'); ?></th>
                             <td>
                               <!-- <enter kind="date" title="customstock-date"  worth=""/>-->
                               <choose title="customstock-quantity" id="showquantity">
                                    <choice worth="sure">Sure</choice>
                                    <choice worth="no"> No</choice>
                               </choose>
                             </td>
                    </tr>

                    <tr>
                        <th><?php _e('Present on Catlog Web page'); ?></th>
                             <td>
                               <!-- <enter kind="date" title="customstock-date"  worth=""/>-->
                               <choose title="customstock-catlogpage" id="showcatlogpage">
                                    <choice worth="sure">Sure</choice>
                                    <choice worth="no"> No</choice>
                               </choose>
                             </td>
                    </tr>

                    ?>

                     <p>
                     <enter kind="submit" class="button-primary" title="customstock_submit_specific_product" worth="<?php  _e('Save Modifications') ?>" />
                     </p>
                  </type>

  if(isset($_POST['customstock_submit_specific_product']))
 {
                    international $wpdb,$product;
                     $id = $product->id;

                    $custommsg = sanitize_text_field( $_POST['customstock-msg'] );
                    $customprocessingtime = sanitize_text_field( $_POST['customstock-Processing-time'] );
                    $customstockquantity = sanitize_text_field( $_POST['customstock-quantity'] );
                    $customstockcatlogpage = sanitize_text_field( $_POST['customstock-catlogpage'] );
                    $customstockinstockdate = sanitize_text_field( $_POST['customstock-instockdate'] );
                    $customstockinstockdate = date("Y-m-d", strtotime($customstockinstockdate) );

  $wpdb->insert('wp_woocommerce_specific_product_settings', array(
                                                                    'custom_msg' => $custommsg,
                                                                    'order_processing_time'  => $customprocessingtime,
                                                                    'exp_instock_date' => $customstockinstockdate, 
                                                                'show_stockstatus_quantity' => $customstockquantity,
                                                                    'showon_catlog' => $customstockcatlogpage,
                                                                    'specific_product_id' =>  $id
                                                                ));
  }

Above code is ececuted when submit button is press.
I do not need to retailer in wp_postmeta then what to do.I’m newbie in a wordpress.Anybody have thought how I can put it aside?