shop_product.product_discount,shop_cart.cart_quantity,shop_product.product_first from shop_cart,shop_product where shop_cart.cart_shop_id=" + shop_id + " and shop_cart.cart_guest_id='" + guest_name + "' and shop_cart.cart_product_id=shop_product.product_id"; rs = bka.executeQuery(sql); int total; int total_first; total=0; total_first=0; String product_name; int product_price; int product_discount; int product_first; int cart_quantity;
if (rs.next()){ while (rs.next()) { product_id=java.lang.Integer.parseInt(rs.getString(1)); product_name=rs.getString(2); product_price=java.lang.Integer.parseInt(rs.getString(3)); product_discount=java.lang.Integer.parseInt(rs.getString(4)); cart_quantity=java.lang.Integer.parseInt(rs.getString(5)); product_first=java.lang.Integer.parseInt(rs.getString(6)); %>