% Set oRs = Server.CreateObject ("ADODB.Recordset") if request("id")<>"" THEN StrSQL = "SELECT * FROM `tblPages` Where Page_ID="&Request("id")&" LIMIT 0 , 30" elseif request("secid")<>"" THEN StrSQL = "SELECT `tblSection`.*, `Section_Name` AS PageHead FROM `tblSection` Where Section_ID="&Request("secid")&" LIMIT 0 , 30" end if Set oRs = oConn.Execute(strSQL) if not oRs.EOF then%>
|