Ver Mensaje Individual
  #5 (permalink)  
Antiguo 14/08/2002, 11:52
pepelucho
 
Fecha de Ingreso: enero-2002
Ubicación: Callao - Perú
Mensajes: 1.127
Antigüedad: 23 años, 4 meses
Puntos: 0
Re: Grabar en campo vacio!

Gracias MAESTRO <IMG SRC="images/futbol.gif" WIDTH="15" HEIGHT="15" HSPACE="3"> , me esta funcionando a la perfecciòn, este es el codigo final :
&lt;!--#include file=&quot;../setup.asp&quot; --&gt;
&lt;%
imagen=request.form(&quot;imagen&quot;)
noticia=request.form(&quot;noticia&quot;)

Function Llenar(imagen,noticia)
set rs=server.createobject(&quot;adodb.recordset&quot; )
rs.activeconnection=cn
sql=&quot;select * from noticias&quot;
rs.open sql
set rt=server.createobject(&quot;adodb.recordset&quot; )
rt.activeconnection=cn
if isnull(rs.fields(&quot;imagen&quot;)) then
sq=&quot;update noticias SET imagen='&quot;&amp;imagen&amp;&quot;' where id=&quot; &amp; noticia
rt.open sq
' rt.close
Exit Function
end if
if isnull(rs.fields(&quot;imagen2&quot;)) then
sq=&quot;update noticias set imagen2='&quot;&amp;imagen&amp;&quot;' where id=&quot; &amp; noticia
rt.open sq
' rt.close
Exit Function
end if
End Function

Llenar imagen,noticia

%&gt;



SaLuDoS dE:
PePeLuChO dEl PeRú PaRa El MuNdO ;)