Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/07/2002, 03:04
Avatar de deprabado
deprabado
 
Fecha de Ingreso: febrero-2002
Mensajes: 649
Antigüedad: 23 años, 2 meses
Puntos: 0
Alguien me puede ayudar

Tengo este codigo
<% if isobject(Session("carrito")) then
set carrito= Session("carrito")
else
set carrito = Server.CreateObject("Scripting.Dictionary&quo t;)
end if
arrClav = carrito.Keys()
arrElem = carrito.Items()
Set conexion = Server.CreateObject("ADODB.Connection")
set RsProd = Server.CreateObject("ADODB.RecordSet")
conexion.Open "tienda"
for i= 0 to carrito.Count-1
SQL = "SELECT DESCRIPCION,PRECIO FROM PRODUCTOS WHERE CODIGO ="& arrClav(i)
RsProd.Open SQL,conexion,2,3
pre= RsProd("PRECIO")
totpro = pre*arrElem(i)
totped=totped+totpro
%>

pero cuando pido que me muetre el valor de <%=arrElem(i)%> , <%=totpro%> y <%=totped%>
no sale nada.