Wire mesh welding machine

MESHWELD

Muradiye Industrial Zone 17 Sk. No:33
45140 Manisa/TURKEY

WhatsApp : +90 549 236 00 01

 

Factory Phone : +90 236 606 0 616

Wire mesh welding machine

Contact us

    // functions.php dosyasına eklenecek kod
    function custom_items_table_with_approval() {
    global $wpdb;

    $table_name = $wpdb->prefix . 'custom_items';
    $items = $wpdb->get_results("SELECT * FROM $table_name");

    ob_start();
    ?>

    ID

    Item Name

    Description

    Approved

    id; ?>

    item_name; ?>

    item_description; ?>


    is_approved ? 'checked' : ''; ?> onchange="this.form.submit();">

    return ob_get_clean();
    }
    add_shortcode('custom_items_table_with_approval', 'custom_items_table_with_approval');

    // Form gönderimini işleme
    if (isset($_POST['item_id']) && isset($_POST['is_approved'])) {
    $item_id = intval($_POST['item_id']);
    $is_approved = ($_POST['is_approved'] == 'on') ? 1 : 0;

    $wpdb->update(
    $wpdb->prefix . 'custom_items',
    array('is_approved' => $is_approved),
    array('id' => $item_id),
    array('%d'),
    array('%d')
    );
    }

    Our representatives

    Contact Person
    Overseas Sales Representative
    Email: sales@meshweld.com
    Whatsapp: +90 549 2360001

    Mesh welding machine

    Would you like to be our representative in your area?

    Fill in the form for contacting us.

    Application form

      // functions.php dosyasına eklenecek kod
      function custom_items_table_with_approval() {
      global $wpdb;

      $table_name = $wpdb->prefix . 'custom_items';
      $items = $wpdb->get_results("SELECT * FROM $table_name");

      ob_start();
      ?>

      ID

      Item Name

      Description

      Approved

      id; ?>

      item_name; ?>

      item_description; ?>


      is_approved ? 'checked' : ''; ?> onchange="this.form.submit();">

      return ob_get_clean();
      }
      add_shortcode('custom_items_table_with_approval', 'custom_items_table_with_approval');

      // Form gönderimini işleme
      if (isset($_POST['item_id']) && isset($_POST['is_approved'])) {
      $item_id = intval($_POST['item_id']);
      $is_approved = ($_POST['is_approved'] == 'on') ? 1 : 0;

      $wpdb->update(
      $wpdb->prefix . 'custom_items',
      array('is_approved' => $is_approved),
      array('id' => $item_id),
      array('%d'),
      array('%d')
      );
      }