C Cactuz Medlem sedan okt. 2001 670 inlägg Frågan 15 juni 2002 15:05 #1 timma = Datepart("h", now)
minut = Datepart("n", now)
If RecSS("timma") = timma + ssdel AND minut = RecSS("minut") Then
response.write("hej")
End If
nu skriver den bara hej om tiden stämmer exakt men jag vill att den ska skriva hej om klockan är senare oxå
Re: kolla om tiden i databasen är samma lr mer
timma = Datepart("h", now)
minut = Datepart("n", now)
If RecSS("timma") = timma + ssdel AND minut = RecSS("minut") Then
response.write("hej")
ElseIf RecSS("timma") < timma + ssdel Then
Response.Write("hej")
End If
typ. Fungerar dock inte om det är samma timme.
M mozilla Medlem sedan juli 2001 1 084 inlägg verkade ju väldigt mycket de?
timma = Datepart("h", now)
minut = Datepart("n", now)
If RecSS("timma") <= timma + ssdel AND minut <= RecSS("minut") Then
response.write("hej")
End If
?
Japp, Mozillas kod fungerar! Mycket bättre än min! :r