"Kenneth Fuglsang" <kenneth-fuglsang@pc.dk> wrote in message
news:9dmqhh$2aj$1@news.inet.tele.dk...
[Snip]
Prøv at lav indryk det gør det lidt mere overskueligt. Nu har jeg rettet
lidt:
<html>
<head>
<Link rel="stylesheet" type="text/css"
href="/style/undersider/bordreservation.css">
<title>The Complex</title>
</head>
<body>
<%
if session("reload") <> true then
opdater = "onload='window.reload'"
session("reload") = true
end if
' Opret Database forbindelse
Set Conn = Server.CreateObject("ADODB.Connection")
DSN = "Driver={Microsoft Access Driver (*.mdb)};"
DSN = DSN & "DBQ=" & Server.MapPath("/db/database.mdb")
Conn.Open DSN
'Læs Bruger 1
strSQL2 = "Select * from bordreservation Order By ID"
Set rs = Conn.Execute(strSQL2)
none = ""
if rs("navn") <> none then
'Luk Recordset
rs.Close
set rs = nothing
'Læs Bruger
strSQL1 = "Select * from bordreservation Order By ID"
Set rs = Conn.Execute(strSQL1)
Response.Write "<h2 ALIGN='center'>Her kan du betille pladser
til"
Response.Write " det næste party som vi holder.</h2>" & vbcrlf
Response.Write "<P> </P>" & vbcrlf
Response.Write "<DIV ALIGN='center'>" & vbcrlf
Response.Write "<table width='80%' border='0' cellpadding='0'"
Response.Write " cellspacing='0'>" & vbcrlf
If rs.EOF Then
Response.Write "Der er sket en fejl"
End If
Do while not rs.EOF
Response.Write "<tr>"
Response.Write "<td>" & rs("id") & "</td>"
Response.Write "<td>" & rs("navn") & "</td>"
Response.Write "<td>" & rs("Nickname") & "</td>"
Response.Write "</tr>"
rs.MoveNext
Loop
Response.Write "</table>"
Response.Write "</DIV>" & vbcrlf
Else
Response.Write "<h2>Der er desværre ingen tilmeldte
endnu.</h2>"
End If
' Luk RecordSet
rs.Close
Set rs = Nothing
' Luk Database forbindelse
Conn.Close
Set Conn = Nothing
%>
</body>
</html>
--
Jakob Andersen
FAQ for webdesign gruppen på
<
http://www.usenet.dk/oss/dk.edb.internet.webdesign>
"Det er rart at være vigtig, men det er vigtigere at være rar
"