Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/05/2003, 17:13
Avatar de bakanzipp
bakanzipp
 
Fecha de Ingreso: noviembre-2001
Ubicación: santiago de shilli
Mensajes: 2.554
Antigüedad: 23 años, 5 meses
Puntos: 0
HAZLE CASO A DAZ. USA EL GETROWS DESPUES DE CONSULTAR SI VIENE O NO CON DATOS EL RECORDSET..AH Y CIERRA TUS OBJETOS Y RECORDSET DESPUES DE USARLOS..

Código:
SQL_ricura = "SELECT * FROM ricuras WHERE id_ricura = " + Replace(CAT, "'", "''")
set oConn_ricura = Server.CreateObject("ADODB.Connection")
oConn_ricura.Open MM_pcte_STRING
set rs_ricura = oConn_ricura.Execute(SQL_ricura)
'Liberamos los objetos ya!!
%>
Para ver el resultado coloco lo siguiente:
<% if rs_ricura.eof and rs_ricura.bof then %>

No hay registros para esta consulta

<% else

ricura = rs_ricura.GetRows


'no se que mas le agregaras
%>

<img src="<%=ricura(large_ricura, 0)%>" border="0">

<%end if %>

rs_ricura.Close
set rs_ricura = nothing
oConn_ricura.Close
set oConn_ricura = nothing