Ver Mensaje Individual
  #38 (permalink)  
Antiguo 06/08/2008, 06:15
Avatar de engonga
engonga
Usuario no validado
 
Fecha de Ingreso: marzo-2002
Ubicación: Buenos Aires
Mensajes: 1.300
Antigüedad: 23 años, 1 mes
Puntos: 8
Respuesta: filtrar por fechas

todo el codigo

Código PHP:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--
#include file="Connections/sumer_con.asp" -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>

<
title><%=nompagina%></title>

<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
title>Documento sin t&iacute;tulo</title>
</
head>
<
body>
<%
sql "select int(dateDiff(""d"",DATA_NAIXEMENT, date())/365) as agno FROM CURRICULUMS"
'sql = "select *  FROM CURRICULUMS"
'
set oConn=Server.CreateObject("ADODB.Connection")
    
'set rs=Server.CreateObject("ADODB.Recordset")
'
oConn.Open MM_sumer_con_STRING
set rs 
MM_sumer_con_STRING.execute(sql)
 
do while 
not rs.EOF 
      response
.write(rs("agno") & "<br />")
      
rs.moveNext()
loop
rs
.close()
set rs nothing
response
.end()
%>
</
body>
</
html

y el select * from curriculums si que funciona