Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/01/2002, 23:53
Avatar de urjose
urjose
 
Fecha de Ingreso: diciembre-2001
Mensajes: 5.286
Antigüedad: 23 años, 6 meses
Puntos: 1
Re: cambiar fondo desde base de datos

CREAS LA CONEXION Y EL RECORDSET Y DEBES TENER UNA BD CON DOS COLUMNAS UNA CON LOS DIAS DE LA SEMANA DE DOMINGO A LUNES (DE PREFERENCIA EN INGLES PARA EVITAR MAS CODIGO Y OTRA QUE SEA LA RUTA DE LA IMAGEN QUE QUIERES O EL NOMBRE DE LA IMAGEN AHORA BIEN EN LA SENTENCIA SQL USAS LO SIGUIENTE

<%
Dia=WeekDayName(Date)
Sql"Select * from tabla where dia='"&Dia&"'"

ahora usas algo asi
%>

<img src="<%=rs("campoInagen")%>&q uot;>

bueno creo que eso funcionara

salu2 ;) :)




<embed src="http://www.autocar.com.mx/images/logo.swf" type="application/x-shockwave-flash" width="468" height="60" play="true" wmode="transparent" menu="false" loop="true">