Jeg har en fil her der viser en oversigt over brugere !!
Kunne man lave et felt hvor man sat kryds i !
Trykkede på en knap og den slettede dem der var markeret !
<%
Dim stMode
stMode = request("mode")
Dim DirPath, MDBPath, DBPath, connect
DirPath = Request.serverVariables("APPL_PHYSICAL_PATH") 'finder wwwroot
MDBPath = "../database/users.mdb" 'angiver DB'ens path i forhold til wwwroot
DBPath = Dirpath & MDBPath
Set Connect = server.createobject("ADODB.connection")
Connect.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & DBPath
%>
<HTML>
<HEAD>
<TITLE>Bruger oprettelse</TITLE>
<STYLE>
body {
font-family: verdana;
}
</STYLE>
</HEAD>
<BODY bgcolor="#000000" font size="3" color="#FFFFFF" link="#808080" vlink="#808080" alink="#808080">
<b><u><font size="3" color="#FFFFFF"><img border="0" src="logo.gif">Følgende bruger er i Crazy Daisy´s gæstekatotek !</font></u></b>
<p></p>
<div align="left">
<table border="1" width="703" height="47">
<%
sql = "select * from tblUsers;"
set usersRs = connect.execute(sql)
if not usersRs.eof then
do while not usersRs.eof
%>
<tr>
<td width="57" height="47" rowspan="2"><font color="#FFFFFF"><%=usersRs("id")%></td>
<td width="172" height="13"><font color="#FFFFFF"><%=usersRs("username")%></td>
<td width="199" height="13"><font color="#FFFFFF"><%=usersRs("post")%></td>
<td width="247" height="13" colspan="2"><font color="#FFFFFF"><%=usersRs("email")%></td>
</tr>
<tr>
<td width="172" height="22"><font color="#FFFFFF"><%=usersRs("adress")%></td>
<td width="199" height="22"><font color="#FFFFFF"><%=usersRs("by")%></td>
<td width="111" height="22"><font color="#FFFFFF"><%=usersRs("mobiltelefon")%></td>
<td width="130" height="22"><font color="#FFFFFF"><%=usersRs("sex")%></td>
<p></p>
</tr>
<%
usersRs.movenext
loop
end if
%>
</table>
</div>
</body>
</html>
Feltet skulle stå ved siden af Nummer på bruger !!
se evt :
http://www.ssu.dk/view_user.asp