if thats a direct cut and paste then the problem is with the part in red missing an IF
in future it might be better to paste the error message aswell
if request("state") = "test" then sSQL="SELECT * FROM computer ORDER BY siteTitle"
elseif request("state") = "test2" then sSQL="SELECT * FROM computer ORDER BY id"
else request("state") = "test3" then sSQL="SELECT * FROM computer ORDER BY url"
end if |
but i think it might be better to have
select case request("state") case "test" sSQL="SELECT * FROM computer ORDER BY siteTitle" case "test2" sSQL="SELECT * FROM computer ORDER BY id" case "test3" sSQL="SELECT * FROM computer ORDER BY url" end select
|