if request.querystring("case")="games" then
if isempty(request.form("game_name")) then %>
<form name="delete" action="" method="post">
<table width="100%" cellpadding="0" cellspacing="0" border="2" bordercolor="#fff5ee">
<tr>
<td>game name:</td>
<td>game description</td>
<td>mark to delete</td>
</tr>
<%
set oconn=server.createobject("adodb.connection")
oconn.provider="microsoft.jet.oledb.4.0"
oconn.open "c:\inetpub\wwwroot\dragonball\db\dragon.mdb"
set showall=server.createobject("adodb.recordset")
sql="select * from games order by game_name"
showall.open sql,oconn,2,2
do until showall.eof %>
<tr>
<td><%=showall.fields("game_name").value %></td>
<td><%=showall.fields("game_des").value %></td>
<td><input type="checkbox" name="game_name" value="<%=showall.fields("game_name").value %>"></td>
</tr>
<%
showall.movenext
loop
showall.close
set showall=nothing
oconn.close
set oconn=nothing %>
</table>
<input type="submit" value="delete">
</form>
<%
else
set oconn=server.createobject("adodb.connection")
oconn.provider="microsoft.jet.oledb.4.0"
oconn.open "c:\inetpub\wwwroot\dragonball\db\dragon.mdb"
set game=server.createobject("adodb.recordset")
for each item in request.form("game_name")
sql="select * from games where game_name=" & item & ""
***this is line 176***game.open sql,oconn,2,2
set del=server.createobject("scripting.filesystemobject")
gamefile="C:/Inetpub/wwwroot/dragonball/games/" & game.fields("game_name").value
if del.fileexists(gamefile) then
del.deletefile(gamefile)
end if
picfile="C:/Inetpub/wwwroot/dragonball/images/games/" & game.fields("game_pic").value
if del.fileexists(picfile) then
del.deletefile(picfile)
end if
sql2="delete from games where game_name=" & item & ""
oconn.execute sql2
game.close
next
set del=nothing
set game=nothing
oconn.close
set conn=nothing
response.write("games were deleted!")
%>
<script language="javascript">
setTimeout("location='./delete.asp?case=games'",3000)
</script>
<%
end if
end if
end if %>
it says:
Error Type:
Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.
/dragonball/delete.asp, line 176
the 176 line is marked above[in the code].