prepare($query); $stmt->bind_param("i", $saleId); $stmt->execute(); header("Location: sales.php"); exit();