帮帮忙,,未结束字符串常量问题!谢谢!
<!--#include file= "#mdbconn/pxconnmdb1.asp "-->
<%
GuestID=request( "GuestID ")
sql = "SELECT * FROM SchoolAdd where GuestID= "&GuestID
Set rs= Server.CreateObject( "ADODB.Recordset ")
rs.open sql,oConnCusto,1,3
if rs.EOF or rs.BOF then
tempcontent=tempcontent& " <div id= 'pa_kcjs '> "
tempcontent=tempcontent& "暂无内容。如有需要请联系我们! "
tempcontent=tempcontent& " </div> "
end if
for i=1 to rs.recordcount
tempcontent=tempcontent& " <div id=pa_kcjs> "
tempcontent=tempcontent& "学习地址: "
tempcontent=tempcontent&rs( "dz ")
tempcontent=tempcontent& " <br/> "
tempcontent=tempcontent& "工作时间: "
tempcontent=tempcontent&rs( "SchoolTime ")
tempcontent=tempcontent& " <br/> "
tempcontent=tempcontent& "咨询电话: "
tempcontent=tempcontent&rs( "dhxjy ")
tempcontent=tempcontent& " <br/> "
tempcontent=tempcontent& "公交到达: "
tempcontent=tempcontent&rs( "SchoolBus ")
tempcontent=tempcontent& " </div> "
rs.movenext
next
rs.close
set rs = nothing
oConnCusto.close
%> document.write( " <%=tempcontent%> ");
------解决方案--------------------建议你把这段内容拿到别的编辑器里排列一下,也许你那句后面有空格之类的东西!
------解决方案-------------------- <br> 才是换行吧?
------解决方案--------------------把错误贴出来
------解决方案--------------------最后一句:
%> document.write( " <%=tempcontent%> ");
改成
document.write tempcontent
%>