Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/10/2003, 12:42
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
y por que no juntas las cosas?

<%
Dim DBCONT, CONT
Set DBCONT = Server.CreateObject("ADODB.Connection")
Set CONT = Server.CreateObject("ADODB.RecordSet")
DBCONT.Mode = adModeReadWrite
DBCONT.Open ("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" + Server.MapPath("base.mdb"))

nombre= Request ("valor")
SQLCONT="SELECT * FROM contribuyente WHERE id_1= '"&nombre&"' "
CONT.Open SQLCONT ,DBCONT

%>
....
imprimo los datos en diferentes celdas:
.....
<td width="21%">
<% Response.Write CONT("nombre")%>
</td>

</center>
<%
nombre= Request ("valor")
SQLIMP="SELECT * FROM impuestos WHERE id_1= '"&nombre&"' "
CONT.Open SQLIMP ,DBCONT


CONT.Close

DBCONT.Close

Set DBCONT = Nothing
Set CONT = Nothing