<%
else
opcio=CStr(Request.Querystring("signe"))
Set grupconnexio = Server.CreateObject("ADODB.Connection")
grupconnexio.ConnectionString = "DSN=totlleida.com.ofimatica;UID=totlleida.com;PWD=tucan"
grupconnexio.Open
Set recAltaProducte = Server.CreateObject("ADODB.Recordset")
recAltaProducte.ActiveConnection = grupconnexio
Set SqlCommand = Server.CreateObject("ADODB.Command")
SqlCommand.Activeconnection = grupconnexio
if Day (Now)>=1 and Day (Now)<=6 then
SqlCommand.CommandText = "SELECT * FROM Horoscop WHERE signe='" & opcio & "' and data = 1"
elseif Day (Now)>=7 and Day (Now)<=12 then
SqlCommand.CommandText = "SELECT * FROM Horoscop WHERE signe='" & opcio & "' and data = 7"
elseif Day (Now)>=13 and Day (Now)<=18 then
SqlCommand.CommandText = "SELECT * FROM Horoscop WHERE signe='" & opcio & "' and data = 13"
elseif Day (Now)>=19 and Day (Now)<=24 then
SqlCommand.CommandText = "SELECT * FROM Horoscop WHERE signe='" & opcio & "' and data = 19"
else
SqlCommand.CommandText = "SELECT * FROM Horoscop WHERE signe='" & opcio & "' and data = 25"
end if
Set recAltaProducte = SqlCommand.execute
if opcio="Aries" then
%>