急,老大们帮我看看这个烦人的问题?
在页站首页使用<script src="bbs_top2.asp?tlen=40">调用BBS中的最新文章,顺序读出内容正确,但要逆序读出时却总是出错。
所用语句:
sql="select boardid,rootid,body,length from bbs1 order by AnnounceID "
可以正常显示
但使用
sql="select boardid,rootid,body,length from bbs1 order by AnnounceID DESC "
或是
sql="select boardid,rootid,body,length from bbs1 order by 1000000-AnnounceID "
却出错。显示Javascript错误:
行: 22
字符: 127
错误: 未结束的字符串常量
代码: 0
郁闷好久了,请老大们支招!!谢了!!