prepare($sql); $stmt->bind_param('s', $product_id); // Bind product_id as string since kode_barang might be alphanumeric $stmt->execute(); $result = $stmt->get_result(); if ($result->num_rows > 0) { $product = $result->fetch_assoc(); } else { header("Location: /ayula-store/views/barang-kasir/?error=Produk tidak ditemukan"); exit(); } ?>