<% Option Explicit on error resume next Session.Codepage=65001 dim mystr function umlaute(mystr) response.write(mystr) mystr = Replace(mystr,"ä","ä") mystr = Replace(mystr,"Ä","Ä") mystr = Replace(mystr,"ö","ö") mystr = Replace(mystr,"Ö","Ö") mystr = Replace(mystr,"ü","ü") mystr = Replace(mystr,"Ü","Ü") mystr = Replace(mystr,"ß","ß") mystr = Replace(mystr,"€","€") mystr = Replace(mystr,"•", "•") 'response.write(err.description) 'response.write(mystr) end function dim CID dim CUID dim CBOX %> Astrobalance - Stärke und Wohlbefinden für Körper Geist und Seele!
<% Set rs = Server.CreateObject("ADODB.Recordset") sql= "SELECT SITE.* FROM SITE WHERE SITE_KEY = " & CID & " AND SITE_UKEY = " & CUID rs.Open sql, conn,1,1 'rs.movefirst 'rs.movelast 'response.write(rs.recordcount) 'response.write(sql) if rs.recordcount = 0 then rs.close sql= "SELECT SITE.* FROM SITE WHERE SITE_KEY = " & "0" 'response.write(sql) rs.Open sql, conn end if umlaute(rs.fields("SITE_TEXT")) CBOX = rs.fields("SITE_BOX") response.write("") %> <% if isnull(rs.fields("SITE_TEXT")) then if CID = 50 and CUID = 0 then %> <% end if if CID = 40 then %> <% end if if CID = 60 and CUID = 0 then %> <% end if if CID = 60 and CUID = 1 then %> <% end if end if rs.close %>