Wire mesh welding machine
MESHWELD
45140 Manisa/TURKEY
Wire mesh welding machine
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; ?> |
|
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')
);
}