<%
set rs=server.createobject("adodb.recordset")
sql="select * from tdcx where pwid like '%"&pwid&"%' and pwname='%"&pwname&"%'"
pwname=trim(request("pwname"))
pwid=trim(request("pwid"))
response.Write pwname
response.Write "<br>"
response.Write pwid
'response.End()
rs.open sql,conn,1,1
%>
<%if rs.eof then
<td colspan="3">
<%
response.write"现在还没有记录!"‘当数据库里有输入的搜索关键字是,程序也只执行到这里,后面的就不执行了 ,请高手指教
response.end
end if
%></td>
</tr>
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from tdcx where pwid like '%"&pwid&"%' and pwname='%"&pwname&"%'"
rs.open sql,conn,1,1
%>
<tr>
<td width="312" bordercolor="#663333">批文名称</td>
<td width="275" bordercolor="#663333">批文号</td>
<td width="174" bordercolor="#663333">发文时间</td>
</tr>
<%
do while not rs.eof
%>
<tr>
<td bordercolor="#663333"><%=rs("PwName")%></td>
<td bordercolor="#663333"><%=rs("PwId")%></td>
<td bordercolor="#663333"><%=rs("date")%></td>
</tr>
<%
rs.movenext
loop
%>
</table>