
<%
' iniciamos el contenio dinamico
Dim objConex
Dim objRegs
Dim sentSQL
Dim arrDatos
Dim cr
Dim i,j
Const LON = 300
'On Error Resume Next
cr = 1
'sentSQL = "SELECT boletines.id,boletines.plantilla,boletines.titulo,boletines.nota,boletines.foto1 FROM boletines WHERE categoria = 2 ORDER BY fecha DESC, hora DESC;"
sentSQL = "SELECT boletines.id,boletines.plantilla,boletines.titulo,boletines.nota FROM boletines WHERE categoria = 2 ORDER BY fecha DESC, hora DESC LIMIT 5;"
' establecemos la conexion
Set objConex = Server.CreateObject("ADODB.Connection")
objConex.ConnectionTimeout = 120
objConex.Open cadConexMy
'obtenemos resultados
Set objRegs = Server.CreateObject("ADODB.RecordSet")
objRegs.Open sentSQL, objConex, adOpenForwardOnly, adLockReadOnly, adCmdText
If Not objRegs.EOF Then
arrDatos = objRegs.getRows()
End If
' liberamos recursos
objRegs.Close()
Set objRegs = Nothing
objConex.Close()
Set objConex = Nothing
%>
¿no
ves el scroll? actualiza tu navegador IE, NS
<%
Erase arrDatos
Else%>
Sin
notas
<%End IF%>
|
  |