scriptblur
11-23-2002, 12:51 AM
hi guys... please help!
i have been troubled by these two problems over the past few weeks....
1) i am using a in between sql to queries my database and if else conditions with statement to check for the values in between the two values selectd using the sql statement. however this only allows me to check the 1st values and not the values between the 1st and last selected values.
Can any one please gude me how to do?
codes:
sql = "SELECT UserID,Avail FROM Zones WHERE Week = "&Request.Form("weeks")&" AND Day = '"&Request.Form("days")&"' AND Character = '"&Request.Form("location")&"' AND Starttime AND Endtime BETWEEN "&Request.Form("times")&" AND "&Request.Form("timesno")&""
rs.Open sql, conn,1
do until rs.EOF
if (strComp(rs("Avail"),"") = 1)then
iCount=iCount - 1
else
iCount=iCount + 1
end if
rs.MoveNext
loop
if iCount <> rs.RecordCount then
'Response.Redirect "../staff/disapproved_page.asp"
2) how to clea or delete a session instaed of remove all sessions using session.abandon?
i have been troubled by these two problems over the past few weeks....
1) i am using a in between sql to queries my database and if else conditions with statement to check for the values in between the two values selectd using the sql statement. however this only allows me to check the 1st values and not the values between the 1st and last selected values.
Can any one please gude me how to do?
codes:
sql = "SELECT UserID,Avail FROM Zones WHERE Week = "&Request.Form("weeks")&" AND Day = '"&Request.Form("days")&"' AND Character = '"&Request.Form("location")&"' AND Starttime AND Endtime BETWEEN "&Request.Form("times")&" AND "&Request.Form("timesno")&""
rs.Open sql, conn,1
do until rs.EOF
if (strComp(rs("Avail"),"") = 1)then
iCount=iCount - 1
else
iCount=iCount + 1
end if
rs.MoveNext
loop
if iCount <> rs.RecordCount then
'Response.Redirect "../staff/disapproved_page.asp"
2) how to clea or delete a session instaed of remove all sessions using session.abandon?