<% const adopenforwardonly=0 const adlockreadonly=1 const adcmdtext=1 dim cn,cnstr Set cn = Server.CreateObject("ADODB.Connection") cnstr="provider=microsoft.jet.oledb.4.0;" cnstr=cnstr & "data source=c:\inetpub\wwwroot\stud_asp_example\sem6_2002\c208\kim.mdb;" cn.connectionstring=cnstr cn.Open dim rs, sql,slet set rs=Server.CreateObject("ADODB.recordset") sql="select*from data where id="& request("id") rs.open sql, cn,adopenforwardonly,adlockreadonly,adcmdtext %> Id nummer <% response.write rs.fields("id")%>
<% dim navn response.write"
"&"" response.write"Navn
" response.write"
"&"" response.write"Efternavn
" response.write"
"&"" response.write"e-mail
" response.write"
"&"" rs.close set rs=nothing cn.close set cn=nothing %>