Lazerzubb
2001-01-21, 10:16
Så här ser koden ut i asp
//
<!-- #include virtual="/land/adovbs.stm" -->
<% Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "driver={Microsoft Access Driver (*.mdb)};dbq=D:/inetpub/wwwroot/sok1.mdb"
SQL = "SELECT TOP 5 * FROM sok ORDER BY ID DESC"
set rs=Connect.Execute(SQL)
if not rs.eof then
do until rs.eof
%>
<%=rs("LAND")%><br>
<%rs.movenext
loop
%><%
end if
rs.close
set rs=Nothing
Connect.close
set connect=nothing
%>
//
jag vill få den i wml.
------------------
Lazerzubb
//
<!-- #include virtual="/land/adovbs.stm" -->
<% Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "driver={Microsoft Access Driver (*.mdb)};dbq=D:/inetpub/wwwroot/sok1.mdb"
SQL = "SELECT TOP 5 * FROM sok ORDER BY ID DESC"
set rs=Connect.Execute(SQL)
if not rs.eof then
do until rs.eof
%>
<%=rs("LAND")%><br>
<%rs.movenext
loop
%><%
end if
rs.close
set rs=Nothing
Connect.close
set connect=nothing
%>
//
jag vill få den i wml.
------------------
Lazerzubb