分两列显示问题

liumingyu218 2009-07-21 03:42:52

<table width="98%" border="0" cellspacing="0" cellpadding="0" style="border-right:0px #c7ecff solid">
<%
do while not rs.eof
Dim FromNewsClassID
FromNewsClassID = rs("NewsClassID")
NewsArticleID = rs("NewsArticleID")
Title = rs("Title")
ModifyTime = rs("ModifyTime")
FilePath = rs("FilePath")
Embody = rs("Embody")
Userid = Trim(rs("Userid"))
checkintime = year(rs("checkintime"))&"-"&month(rs("checkintime"))&"-"&day(rs("checkintime"))
%>
<tr>
<td width="47%" class="left12">
<% If Keyword<>"" Then Response.Write(Replace(Title,Keyword,"<font color=red>"&Keyword&"</font>")) Else Response.Write(conleft(Title,32)) End If%>
</td>
这里分列显示怎么写?
<td width="53%" class="left12">
<% If Keyword<>"" Then Response.Write(Replace(Title,Keyword,"<font color=red>"&Keyword&"</font>")) Else Response.Write(conleft(Title,32)) End If%>
</td>
</tr>
<%
rs.movenext
loop
%>
</table>
<%
rs.close
set rs=nothing
%>


还有个问题
SQL2005新建存储过程的时候出现错误

use [gsweb]
create proc SP_QUERY_MTASK
as
select * from [gsweb].dbo.[MTASK]
go


出现这样的错误:

消息 111,级别 15,状态 1,过程 SP_QUERY_MTASK,第 4 行
'CREATE/ALTER PROCEDURE' 必须是查询批次中的第一个语句。
...全文
76 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
SY_ToG 2009-07-21
  • 打赏
  • 举报
回复
if exists(select name from sysobjects where name='proc_ProductsOption' and type='P')
drop proc proc_ProductsOption
go
create proc proc_ProductsOption
(
@ProductsID1 varchar(100),
@OpinionContent ntext,
@userName varchar(50)
)
as
begin
insert into ProductOpinion(ProductsID1,OpinionContent,userName) values(@ProductsID1,@OpinionContent,@userName)
end

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧