<%
smtid=request("smtid") //给SMTID赋值
if smtid="" or not IsNumeric(smtid) then //如果SMTID值为空或者不是数值那么
response.write "错误参数!" //提示错误参数
response.end //停止执行脚本end if //结束判断
set rsoutput=server.CreateObject("adodb.recordset") //创建新的记录集
sqloutput="select * from books where bookid="&smtid //打开BOOKS表中所有字段,条件为BOOKID等于SMTID (SMTID在上面已经赋值了)
rsoutput.open sqloutput,conn,1,1 //执行查询
if not rsoutput.eof then //如果记录为空干嘛干嘛干嘛的.
%>
ASP代码加注释
猜你喜欢
转载自www.cnblogs.com/linxiaoxiao/p/11645318.html
今日推荐
周排行