asp留言板如何添加一个消息提醒

来源:百度知道 编辑:UC知道 时间:2024/09/20 02:36:56
我做了个asp留言板,就想想在原来的基础上填加一个消息提醒。比如说当某个用户的留言中有“联想手机多少钱”这几个字时,后台有能有个提示的消息(提示管理员有这个留言),没有这几个字就不要提醒,这个功能要怎么做,请那位高手指点下小弟,小弟很着急,如果内容太多,大家也可以发到我的QQ邮箱里我的QQ是(58253039@QQ.com)

<%
days1=split(date(),"-")
days2=split(DateAdd("d",5,date()),"-")
sql="select * from 表名 "
if days1(1)<>days2(1) then
sql=sql+" where (month(wh) = '"&days1(1)&"' or month(wh)='"&days2(1)&"')"
else
sql=sql+" where month(wh) = '"&days1(1)&"'"
end if
sql=sql+" and day(wh) between '"&days1(2)&"' and '"&days2(2)&"'"
'Response.Write(sql)
set conn=server.CreateObject("ADODB.connection")
conn.open connstr
set rs=Conn.execute(sql)
if not rs.eof then%>
<script language="JavaScript">
window.onload = getMsg;
window.onresize = resizeDiv;
window.onerror = function(){}
//短信提示使用(asilas添加)
var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
function getMsg()