der er noget galt med min brugerliste
<%
Option Explicit
Dim sql,newcount,rsUsers,rsUser,username,sex,lookfor, startletter,alphabet
username = Request.Cookies("username")
'Example of protecting a page for members only
if username = "" then
Response.Redirect("nologin.asp?page=userview.asp")
end if
<MM:BeginLock translatorClass="MM_SSI" type="ssi_include" depFiles="conn.asp" orig="%3C!--#include file=%22conn.asp%22--%3E" ><%
Dim ConnectString, conn
ConnectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("members.mdb")
Set conn = Server.CreateObject("ADODB.Connection")
conn.open ConnectString
%><MM:EndLock>
<%
Set rsUsers = Server.CreateObject("ADODB.Recordset")
rsUsers.Open sql, conn, 3, 3
sql = "SELECT icon, Icq FROM Users WHERE username = '" & username & "'"
Set rsUser = Server.CreateObject("ADODB.Recordset")
rsUser.Open sql, conn, 3, 3
%>
<HTML>
<HEAD>
<TITLE></TITLE>
<META name="description" content="">
<META name="keywords" content="">
<META name="robots" content="index, follow">
<META name="revisit" content="7 days">
<style type="text/css">
<!--
A:link {text-decoration: none;}
A:visited {text-decoration: none;}
A:hover {text-decoration: underline;}
-->
</style>
</HEAD>
<BODY BGCOLOR="FFFFFF" TEXT="000000" LINK="FF8000" VLINK="FF8000" Marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>
<div align="center">
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD VALIGN=top height="486"> </TD>
<TD VALIGN=top height="486">
<p align="center"><BR>
<table align="center" border="0" width="654">
<tr>
<td width="648" height="388" style="border-color:black; border-top-style:solid; border-right-style:none; border-bottom-style:none; border-left-style:solid;">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">
<p> </p>
<p align="center"> </p>
<!-- Displays A-Z -->
<table cellpadding="2" cellspacing="0" border="1" bordercolor="#B4B4B4" width="638" align="center">
<tr>
<td align="center" bgcolor="black" width="384"><a href="userview.asp?startletter=nonalphabet"><b><font face="Arial,helvetica" size="2" color="white">123</font></b></a><font color="white" size="2" face="Arial"><b>
<%'Loop through alphabet (chars 65 to 90 are A-Z)
for alphabet = 65 to 90%>
</b></font></td>
<td align="center" bgcolor="black" width="240"><font color="white" size="2" face="Arial"><b> </b></font><a href="file:///D|/Bastiano/dating/userview.asp?startletter=<%=chr(alphabet)%>"><b><font face="Arial,helvetica" size="2" color="white"><%=chr(alphabet)%></font></b></a></td>
<%next%>
</tr>
</table>
<%if not rsUsers.EOF then%>
<!-- Displays users -->
<table cellpadding="2" cellspacing="0" border="1" bordercolor="#B4B4B4" width="639" align="center">
<tr bgcolor="#B4B4B4">
<th width="95" height="25" bgcolor="black">
<p align="center"><font face="Arial,helvetica" size="2" color="white"><b>Brugernavn</b></font>
</th>
<th width="82" height="25" bgcolor="black">
<p align="center"><font color="white" size="2" face="Arial"><b>Alder</b></font></p>
</th>
<th width="136" height="25" bgcolor="black">
<p align="center"><font face="Arial,helvetica" size="2" color="white"><b>Icon</b></font>
</th>
<th width="167" height="25" bgcolor="black">
<p align="center"><font face="Arial,helvetica" size="2" color="white"><b>Kontakt</b></font>
</th>
</tr>
<%rsUsers.Movefirst
do until rsUsers.EOF%>
<tr>
<td width="95" height="36"><font color="black"><b> </b></font><a href="show_profil.asp?user=<%=rsUsers("username")%>"><font face="arial,helvetica" size="2" color="black"><b><%=rsUsers("username")%>
</b></font></a></td>
<td width="82" height="36">
<p align="center"><font color="black"><b><%=rsUsers("Age")%></b></font></p>
</td>
<td align="center" width="136" height="36"><font color="black"><b><img src="icons/<%=rsUsers("icon")%>_small.gif" width="20" height="20"></b></font></td>
<td align="center" width="167" height="36"><a href="messagecompose.asp?senduser=<%=rsUsers("username")%>"><font face="arial,helvetica" size="1" color="black"><b><img src="file:///D|/Bastiano/dating/icons/envelope.gif" alt="send a message to <%=rsUsers("username")%>" border=0 hspace="10">send
besked</b></font></a></td>
</tr>
<%rsUsers.Movenext
loop%>
</table>
<%'If no users, give a message
else%>
<p align="center"><font face="arial,helvetica" size=2 color="white"><b>Der
er ikke nogen der starter med <%=startletter%>.</b></font></p>
<%end if%>
<font face="arial,helvetica" size=2 color="white"><b><br>
</b></font>
<p align="center"><a href="index.asp"><font face="arial,helvetica" size=2 color="white"><b>Tilbage
til forsiden</b></font></a></p>
</td>
</tr>
</table>
<p align="left"> </p>
</TD>
</TR>
</TABLE>
</div>
<p> </p>
</BODY>
</HTML>
<%
rsUsers.close
set rsUsers = nothing
rsUser.close
set rsUser = nothing
conn.close
set conn = nothing
%>
den viser http error når siden åbnes.
