Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

name="description" 网页描述为什么出现在网页顶部,跪求帮忙!

[复制链接]
sort00 发表于 2011-5-30 10:49:36 | 显示全部楼层 |阅读模式
name="description" 网页描述为什么出现在网页顶部,跪求帮忙!

未命名.jpg

文章显示页面代码

<html>
<head>
<%
id=trim(request.querystring("id"))
id=fld(id)
if not isnumeric(id) then
call yzcc("请合法操作!")
end if
set rs_wz=server.createobject("adodb.recordset")
lr_wz="select zt,xl,Content,lxr,ly,hyzh,tjf,ll,fbsj from wz where shf=true and id="&id
rs_wz.open lr_wz,conn,1,2,1
if rs_wz.recordcount<>1 then
response.write "<script>alert('您查看的文章不存在或末通过审核!<确定>返回首页!');location='index.asp'</script>"
response.end
end if
rs_wz("ll")=rs_wz("ll")+1
rs_wz.update
ytgjz=left(replace(replace(rs_wz("Content"),chr(10)&chr(13),""),chr(32),""),100)&"..."
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="<% =rs_wz("zt") %>" />
<meta name="description" content="<% =ytgjz %>" />
<title><% =rs_wz("zt") %>,<% =rs_xtpz("mc") %></title>
回复

使用道具 举报

joyanhui 发表于 2011-5-30 14:39:21 | 显示全部楼层
不仅不是discuz的问题,而且竟然都不是php的问题!!!

你的变量和记录没有过滤,里面肯定是有特殊符号

rs_wz("zt")   ytgjz检查一下吧
回复

使用道具 举报

 楼主| sort00 发表于 2011-6-7 01:04:32 | 显示全部楼层
非常感谢!现在已经处理好了
http://www.sf0898.com
已经正常显示,没在出现这个问题了……
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-8-24 04:54 , Processed in 0.111425 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表