ya casi lo tengo
Código PHP:
<% Dim conn, rst
Set rst= Server.CreateObject("ADODB.Recordset")
rst.ActiveConnection = MM_hotel_STRING
rst.Source = "SELECT * FROM restaurantes where destacado ='1'"
rst.CursorType = 2
rst.CursorLocation = 2
rst.LockType = 2
rst.Open()
if not rst.EOF then
rst.moveFirst()
for i=0 to 9
a = Int((rst.recordCount) * Rnd)
Te posiciones en el registro aleatorio
rst.move(a)%>
<li><a href="#primero"><%=rst("nombre")%> - <%=rst("localidad")%></a></li>
<%
next
end if
rst.close()
set rst = nothing
%>
pero me sale el error
Código HTML:
ADODB.Field (0x80020009)
El valor de BOF o EOF es True, o el actual registro se eliminó; la operación solicitada requiere un registro actual.