請幫我看下。這樣寫錯在那裡
<%
dim id,fm
fm=request.querystring("fm")
id=request.querystring("id")
if fm=XX then
set rst=server.createobject("adodb.recordset")
rst.open "select * from GG_XX where id="&id&"",conn,1,1
%>
<tr>
<td colspan="9" align="center"> </td>
</tr>
<tr bgcolor="#7DCEE1" background="log/bei3.jpg">
<td height="30" colspan="9" align="center">本頁教學標題:<%=rst("XX_title")%></td>
</tr>
<tr>
<td colspan="9" align="center"><div align="left"><%=rst("XX_neirong")%></div></td>
</tr>
<tr bordercolor="#C4E9F2" bgcolor="#C4E9F2">
<td colspan="9" align="right">老師:<%=rst("FB_laoshi")%>
發佈時間:<%=rst("FB_shijian")%></td>
</tr>
</table>
<%
rst.close
set rst=nothing
else
set rst=server.createobject("adodb.recordset")
rst.open "select * from TC_NR where id="&id&"",conn,1,1
if rst.eof then
response.write"<tr><td colspan=9>沒有內容</td></tr>"
else
%>
<tr>
<td colspan="9" align="center"> </td>
</tr>
<tr bgcolor="#7DCEE1" background="log/bei3.jpg">
<td height="30" colspan="9" align="center">本頁教學標題:<%=rst("TC_title")%></td>
</tr>
<tr>
<td colspan="9" align="center" height="200"><div align="left"><%=rst("TC_neirong")%></div></td>
</tr>
<tr bordercolor="#C4E9F2" bgcolor="#C4E9F2">
<td colspan="9" align="right">老師:<%=rst("TC_laoshi")%>
發佈時間:<%=rst("TC_shijian")%></td>
</tr>
</table>
<%
rst.close
set rst=nothing
end if
end if
%>
不管怎麼樣,他只顯視ELSE後面的語句部份
[[italic] 本帖最后由 xunmi_love 于 2007-12-29 11:43 编辑 [/italic]]