%@ codepage=874%> <%Session.LCID = 1054%> <% on error resume next ' ---- ส่วนรับข้อมูลจาก form gID=Request.QueryString("GID") ' ---- ส่วนติดต่อกับฐานข้อมูลเพื่อแสดงรายการคำถามและคำตอบเฉพาะที่ต้องการ Call ConnectDB() Sql1="Select * from Questions where QNumber =" & gID Sql2="Select * from Answers where QNumber=" & gID &" order by ADate" Set RS =Server.CreateObject("ADODB.Recordset") RS.open Sql1,Conn,1,3 %>
|
<%=Server.HTMLEncode(RS("QTopic"))%>
|
|||||||||||
<%
For idx = 1 to totalPage
If idx=cint(pageno) then%>
<%=idx%>
<%
Else
%>
<%=idx%>
<%
End if
%>
<%
Next%>
|
<%
if cint(pageno) > 1 then %>
[หน้าแรก] [<<
Back]
<% end if
if cint(pageno) < totalPage then %>
[Next >>]
[หน้าสุดท้าย]
<% end if
%>
ขอเชิญร่วมตอบคำถามครับ |