if request.querystring("state") = "uk" then
sSQL="SELECT * FROM links_news WHERE country = 'UK' ORDER BY siteTitle "
elseif request.querystring("state") = "us" then
sSQL="SELECT * FROM links_news WHERE country = 'America' ORDER BY siteTitle "
elseif request.querystring("state") = "ie" then
sSQL="SELECT * FROM links_news WHERE country = 'Ireland' ORDER BY siteTitle "
elseif request.querystring("state") = "world" then
sSQL="SELECT * FROM links_news WHERE country = 'World' ORDER BY siteTitle "
elseif request.querystring("state") = "other" then
sSQL="SELECT * FROM links_news WHERE country = 'other' ORDER BY siteTitle "
Else
sSQL="SELECT * FROM links_news ORDER BY siteTitle "
End If
OR
Select case request.querystring("state")
Case "uk"
sSQL="SELECT * FROM links_news WHERE country = 'UK' ORDER BY siteTitle "
Case "us"
sSQL="SELECT * FROM links_news WHERE country = 'America' ORDER BY siteTitle "
Case "ie"
sSQL="SELECT * FROM links_news WHERE country = 'Ireland' ORDER BY siteTitle "
Case "world"
sSQL="SELECT * FROM links_news WHERE country = 'World' ORDER BY siteTitle "
Case "other"
sSQL="SELECT * FROM links_news WHERE country = 'other' ORDER BY siteTitle "
ELSE
sSQL="SELECT * FROM links_news ORDER BY siteTitle "
End Select
Edited by dfrancis - 26 October 2005 at 4:36pm