%@Language=VBScript%> <% articleID = Request.QueryString("id") statement = "SELECT article.fileName, article.title AS articleTitle, article.categoryID, category.title AS categoryTitle, category.subtitle " &_ "FROM article, category WHERE article.ID = " & articleID & " AND category.ID LIKE article.categoryID" dim RS set RS = Server.CreateObject("ADODB.Recordset") RS.Open statement, myConnection page_header "DUMMY", ucase(RS("articleTitle")) & " > ARTICLES" dim fso, file, line, filetxt Set fso = CreateObject("Scripting.FileSystemObject") Set file = fso.OpenTextFile(Server.Mappath(".") & "\new_articles\" & RS("fileName"), 1) startDisplay = false function doSubtitle (subtitle) if len(RS("subtitle") & "") = 0 then doSubtitle = "" else doSubtitle = "