varför funkar inte koden??
connect22.execute "update members set status = 'offline' where dateadd('n',cint([minonline]/2),[start]) < now() and status = 'online'",,128
[Redigerat av hacktheplanet den 07 feb 2002]
10 svar · 182 visningar · startad av hacktheplanet
varför funkar inte koden??
connect22.execute "update members set status = 'offline' where dateadd('n',cint([minonline]/2),[start]) < now() and status = 'online'",,128
[Redigerat av hacktheplanet den 07 feb 2002]
såhär eller
test = datediff("n",cdate([minonline]/2),[start]) < now()
connect22.execute "update members set status = 'offline' where "& test &" and status = 'online'",,128
connect22.close : set connect22 = nothing
response.write test
strSQL = "update members set status = 'offline' where dateadd('n',cint([minonline]/2),[start]) < now() and status = 'online'"
Response.Write strSQL
connect22.execute(strSQL),,128
------------------
-::| a tribute to LarsG |::-
update members set status = 'offline' where dateadd('n',cint([minonline]/2),[start]) < now() and status = 'online'
såhär da
strSQL = "update members set status = 'offline' where start = dateadd('n',cint([minonline]/2)) < now()"
Jag är helt borta... :r
------------------
-::| a tribute to LarsG |::-
[Redigerat av icaaq den 07 feb 2002]
[Redigerat av icaaq den 07 feb 2002]
jag har en frame som uppdaterar varje 35 sek som sammtidigt postar now() till databasen.Allt funkar perfekt ibland!!
och detta har jag i default.asp!!
connection6.execute "update members set status = 'offline' where not left(start,15) = left(now(),15) and status = 'online'"
någon som förstår mig eller??