<?php
require_once "../../includes/db.php";

$id              = $_POST['edit_sup_id'];
$name            = $_POST['edit_sup_name'];

$status          = $_POST['edit_sup_status'];



$stmt = $pdo->prepare("
    UPDATE accounts 
    SET acc_name = ?, 
        status = ? 
     
    WHERE id = ?
");

$stmt->execute([
    $name,
    
    $status,
    
    $id
]);

echo "success";
exit;