Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/09/2005, 08:18
Dselling
 
Fecha de Ingreso: enero-2003
Ubicación: Madrid
Mensajes: 136
Antigüedad: 22 años, 4 meses
Puntos: 1
Nada, sigue igual...he metido como
Código PHP:
Session("Marca")=rs.Fields("Marca")
        
foto Replace(foto"jpg""gif")
        if 
foto <>"" then fotoReplace(foto"jpg""gif")
        %>
        <
td width="350">
            <
div id="datos">                 
            <
table width="350" border="0" cellpadding="0" cellspacing="0">
                <
tr>
                    <
td width="165" align="right">
                        <
table width="165" border="0" cellpadding="0" cellspacing="0">
                            <
tr>
                                <
td width="85" align="left">
                                    <
div id="foto">
                                        <%
                                        
foto=rs.fields("fotos")
                                        for 
i=1 to foto 
                                        
if i<10 then
                                        
%>
                                        <
img src="http://www.motorpoint.com/newage/guia_comprador_nueva/fotos_coches/<%=rs.Fields("marca")%>/0<%=i%>.jpg" border="0">
                                        <%
                                        
end if 
                                        
next
                                        
%>
                                    </
div>
                                </
td

y da error como:
Microsoft VBScript runtime error '800a005e'

Invalid use of Null

/newage/guiacomprador/pruebaguia.asp, line 235
La linea 235 viene de for i=1 to foto