<% islem=request.querystring("islem" ) if islem="sifir" then call sifir else %> <% sub sifir %> <% catid = Request.QueryString("catid") set ayarlar = server.createobject("adodb.recordset") SQL="Select * from questions where id="&catid&"" ayarlar.open SQL,teksan,1,3 ayarlar.update ayarlar("total_votes")=0 ayarlar("date")=date+time ayarlar.update %> <% set ayad = server.createobject("adodb.recordset") SQL="Select * from answers where question_id="&ayarlar("id")&"" ayad.open SQL,teksan,1,3 kayitsayi = 100000000000 %> <% for k=1 to kayitsayi if ayad.eof or ayad.bof then exit for %> <% ayad.update ayad("total_votes")=0 ayad.update %> <% ayad.movenext : next%> <% Response.Redirect "anketpol.asp" end sub end if %>