Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/01/2009, 15:33
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 18 años, 4 meses
Puntos: 126
Respuesta: bases de datos y ASP

Hola

Podrías hacer algo así

Código asp:
Ver original
  1. SQL ="UPDATE tabla SET "
  2. SQL = SQL & "NOMBRE = '"&nombre&"' " ' Este campo siempre hay que editarlo para evitar el problema con las comas
  3. if ip <> "" then
  4. SQL = SQL & ", IP = "&ip&" "
  5. end if
  6. if anexo <> "" then
  7. SQL = SQL & ", ANEXO = "&anexo&" "
  8. end if
  9. .........
  10. SQL = SQL & "WHERE NOMBRE = '"&nombre&"'"

Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />