% if ( Request.QueryString("LOGOUT") = "1" ) then session("USERNAME") = "" end if %> <% topicid = request.QueryString("topic") set rs = server.CreateObject("ADODB.Recordset") 'selsql = "select * from tblTopic where TopicId=" & request.QueryString("topic") selsql = "select tblTopic.TopicId,tblTopic.CategoryId, tblTopic.Subject, tblTopic.Message, tblTopic.Date, tblCategory.Name, tblCategory.CategoryId from tblTopic, tblCategory where TopicId=" & request.QueryString("topic") & "and tblTopic.CategoryId = tblCategory.CategoryId" rs.Open selsql,db,3 %>