<?php
include "../db.php";
$id = intval($_POST['id'] ?? 0);

if ($id) {
    $ok = mysqli_query($con, "UPDATE student_bill SET sb_recycle = '1' WHERE sb_id = $id");
    echo $ok ? 'ok' : 'err';
} else {
    echo 'err';
}