本人最近在维护一个asp做的网站,里面有段代码如下:
<% sql="select a.id,a.title,b.projectId from tblIBBemail a" & _ " inner join tblibbautoemailcategory b on a.id = b.emailid" & _ " order by b.projectid,a.Title" set rec=server.createobject("ADODB.Recordset") rec.open sql, conn, 3, 3 if not rec.eof then do until rec.eof stitle = rec("title") stitle = replace(stitle,"&","&") stitle = replace(stitle,"'","'") stitle = replace(stitle,"""",""") response.write "" & chr(10) rec.movenext loop end if %> <xml > <% sql="select a.id,a.title,b.projectId from tblIBBemail a" & _ " inner join tblibbautoemailcategory b on a.id = b.emailid" & _ " order by b.projectid,a.Title" set rec=server.createobject("ADODB.Recordset") rec.open sql, conn, 3, 3 if not rec.eof then do until rec.eof stitle = rec("title") stitle = replace(stitle,"&","&") stitle = replace(stitle,"'","'") stitle = replace(stitle,"""",""") response.write "" & chr(10) rec.movenext loop end if %> <% sql="select a.id,a.title,b.projectId from tblIBBemail a" & _ " inner join tblibbautoemailcategory b on a.id = b.emailid" & _ " order by b.projectid,a.Title" set rec=server.createobject("ADODB.Recordset") rec.open sql, conn, 3, 3 if not rec.eof then do until rec.eof stitle = rec("title") stitle = replace(stitle,"&","&") stitle = replace(stitle,"'","'") stitle = replace(stitle,"""",""") response.write "" & chr(10) rec.movenext loop end if %>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-01-07
  • 2021-09-07
猜你喜欢
  • 2021-12-17
  • 2021-11-13
  • 2021-12-16
  • 2021-05-08
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案