Hello
Following code below
Even if "if clause" is respected ... it does not work
Just go to last if and print value of variavel3 variable :(
O que estou fazendo de errado ?
<%
variavel1 = LCase(Request.ServerVariables("URL"))
variavel2 = LCase(Request.ServerVariables("QUERY_STRING"))
variavel3 = "SEM TÍTULO AINDA | ConteudoAnimal.com.br"
select case variavel1
case "/"
response.write ("Informações e Noticias sobre: cachorros, gatos, cavalos, pássaros, peixes e muito mais")
case "/default.asp"
response.write ("Informações e Noticias sobre: cachorros, gatos, cavalos, pássaros, peixes e muito mais")
case else
set rs=conn.execute("select title from paginastitulodescricao where lcase(url) like CONCAT("%",variavel2,"%")")
if not rs.EOF then
response.write rs("title")
else
set rs=conn.execute("select title from paginastitulodescricao where lcase(url) like CONCAT("%",variavel1,"%")")
response.write rs("title")
end if
if rs.EOF then
response.write variavel3
end if
End Select
response.write("| ConteudoAnimal.com.br")
%>