Hi
The following script works fine if the variable passed the the URL is text. If I make the variable a number (ID) then the script hangs with no error message. I've tried removing the & "'" but it makes no difference.
Can anyone help?
sql_fields = "SELECT * FROM categories where Category_name = '" & Request.QueryString("folder"
& "'"
Set RS = Conn.Execute(sql_fields)
Set rs = Server.CreateObject("ADODB.Recordset"
rs.open sql_fields, Conn, 2, 3
while not(rs.eof)
if rs("category_name"
= Request.QueryString("folder"
then
rs.delete
rs.movenext
end if
wend
The following script works fine if the variable passed the the URL is text. If I make the variable a number (ID) then the script hangs with no error message. I've tried removing the & "'" but it makes no difference.
Can anyone help?
sql_fields = "SELECT * FROM categories where Category_name = '" & Request.QueryString("folder"
Set RS = Conn.Execute(sql_fields)
Set rs = Server.CreateObject("ADODB.Recordset"
rs.open sql_fields, Conn, 2, 3
while not(rs.eof)
if rs("category_name"
rs.delete
rs.movenext
end if
wend