La parte in rosso la sostituisci con il nome del tuo campo ID, ovvero quello che hai impostato come contatore nella tabella in questione.
codice:
<tr>
<td class="table">Username</td>
<td class="table">Password</td>
<td class="table">Nome</td>
<td class="table">Cognome</td>
<td class="table">Indirizzo</td>
<td class="table">Telefono</td>
<td class="table">E-mail</td>
<td>Funzioni</rd>
</tr>
<% While ((Repeat1__numRows <> 0) AND (NOT deldb.EOF)) %>
<tr>
<td class="table"><%=(deldb.Fields.Item("user").Value)%></td>
<td class="table"><%=(deldb.Fields.Item("psw").Value)%></td>
<td class="table"><%=(deldb.Fields.Item("nome").Value)%></td>
<td class="table"><%=(deldb.Fields.Item("cognome").Value)%></td>
<td class="table"><%=(deldb.Fields.Item("indirizzo").Value)%></td>
<td class="table"><%=(deldb.Fields.Item("telefono").Value)%></td>
<td class="table"><%=(deldb.Fields.Item("email").Value)%></td>
<td class="table">">Cancella</td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
deldb.MoveNext()
Wend
%>
cancella.asp
codice:
<%@LANGUAGE="VBSCRIPT"%>
<html>
<head><title></title>
</head>
<body>
<%
id = request.queryString(id)
ref = request.serverVariables("HTTP_REFERER")
if len(ref) = 0 then ref = "/"
if len(id) > 0 and isNumeric(id) then
set conn = server.createObject("ADODB.Connection")
conn.open MM_riv_STRING
conn.execute("DELETE * FROM riv WHERE [ID] = " & id
conn.close
set conn = nothing
response.write "Operazione eseguita."
else
response.write "Nessun valore specificato!"
end if
%>
Torna indietro
</body>
</html>