标题:奇怪
只看楼主
酷酷的鱼
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2005-8-9
得分:0 
时间time也不对,显示的是本机当前时间,而不是数据库里的时间

2005-12-30 09:23
酷酷的鱼
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2005-8-9
得分:0 

<!--#include file="admin/conn.inc"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>进口起亚——售后服务</title>
<style type="text/css">
<!--
body,td,th {
font-family: 宋体;
font-size: 12px;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #EFEFEF;
}
a:link {
color: #FF6633;
text-decoration: none;
}
-->
</style>
<link href="images/kiss.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.wenzi {
line-height: 20px;
padding-top: 10px;
margin: 10px;
}
.style12 {color: #FFFFFF}
.style13 {color: #FF0000}
.wenzi1 {
line-height: 20px;
padding: 0px;
margin: 0px;
}
.wenzi2 { line-height: 20px;
padding-top: 10px;
}
.STYLE14 {
line-height: 20px;
padding-top: 10px;
margin: 10px;
font-size: 14px;
color: #003399;
}
.k0007 {
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #CCCCCC;
}
a:hover {
color: #53D2EE;
}
.STYLE15 {text-decoration: none}
.biaoge007 {
border-top-width: 3px;
border-right-width: 2px;
border-bottom-width: 1px;
border-left-width: 2px;
border-top-style: inset;
border-right-style: inset;
border-bottom-style: inset;
border-left-style: inset;
border-top-color: #666666;
border-right-color: #666666;
border-bottom-color: #666666;
border-left-color: #666666;
}
.biaoge008 {
border-right-width: 1px;
border-right-style: none;
border-right-color: #999999;
border-left-width: 1px;
border-left-style: dashed;
border-left-color: #999999;
}
.biaoge009 {
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #999999;
}
.wenziguanli {
line-height: 20px;
padding: 10px;
}
.style35 {border-bottom-width: 1px; border-bottom-style: dashed; border-bottom-color: #999999; color: #FF0000; }
.style36 {color: #000000}
-->
</style>

</head>

<body>
<div align="center">
<table width="775" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="775" height="210" align="center" valign="middle"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="775" height="210">
<param name="movie" value="Flash/首页标题.swf">
<param name="quality" value="high">
<embed src="Flash/首页标题.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="775" height="210"></embed>
</object></td>
</tr>
</table>
</div>
<div align="center">
<table width="775" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="775" height="20" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td height="20" align="center" valign="middle" bgcolor="#F5F5F5" class="ziju style15"><a href="index1.htm" class="hong style13">网站首页</a> | <a href="waixing.htm" class="hong style13">经典外型</a> | <a href="neishi.htm" class="style13 style13 STYLE15">唯美空间</a> | <a href="xingneng.htm" class="hong">卓越性能</a> | <a href="shfw.htm" class="hong">售后服务</a> |<a href="xxfk.htm" class="hong"> 信息反馈</a> | <a href="zxyd.htm" class="hong">在线预定</a> | <span class="style13">车友俱乐部</span></td>
</tr>
</table></td>
</tr>
<tr>
<td height="25" valign="top"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0" background="images2/06.jpg">
<!--DWLayoutTable-->
<tr>
<td width="775" height="10" align="left" valign="middle"> <span class="style12">您的位置——</span></td>
</tr>
</table></td>
</tr>
<tr>
<td height="600" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="6" bgcolor="#FFCC66">
<!--DWLayoutTable-->
<tr>
<td width="775" height="600" align="center" valign="top" bgcolor="#FFFFFF" class="biaoge007">
<%
set rs=server.createobject("adodb.recordset")
sql= "SELECT * FROM Conews where id="&request("id")
rs.open sql,conn,1,1
title=rs("title")
time1=rs("time")
content=rs("content")
addname=rs("addname")
response.Write "title = " & title & "content" & content & "addname" & addname
response.end

%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="573" align="center" valign="top"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="36" align="center" valign="middle" class="style35"><%response.Write rs("title")%></td>
</tr>
</table>
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="12" align="center" valign="middle" class="biaoge009"><%=time1%> 新闻来源:<%response.Write rs("addname")%></td>
</tr>
</table>
<table width="100%" height="545" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="6" align="left" valign="top"><FONT class=f14 id=zoom><SPAN class=fnews>
<P class="wenziguanli"><%=content%></SPAN></FONT></td>
</tr>
<tr>
<td height="6" align="left" valign="top"><div align="right" class="style36" > [ <a href="javascript:history.back(-1)"> 返回</a> ] [ <a
href="javascript:window.print();">打印</a> ] [<a
href="javascript:window.close();"> 关闭窗口</a> ] </div></td>
</tr>
</table></td>
<td width="186" align="center" valign="top" class="biaoge008"><table width="100%" height="375" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="12" align="center" valign="middle"><img src="images2/Baffle_KIA.jpg" width="175" height="50"></td>
</tr>
<tr>
<td height="12" align="center" valign="middle"><img src="images2/qc01.jpg" width="175" height="60"></td>
</tr>
<tr>
<td height="12" align="center" valign="middle"><img src="images2/qc02.jpg" width="175" height="60"></td>
</tr>
<tr>
<td height="12" align="center" valign="middle"><img src="images2/qc03.jpg" width="175" height="60"></td>
</tr>
<tr>
<td height="12" align="center" valign="middle"><img src="images2/qc04.jpg" width="175" height="60"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</div>
<div align="center"></div>
</body>
</html>
这是程序


2005-12-30 09:23
冰镇柠檬汁儿
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:北京
等 级:版主
威 望:120
帖 子:8074
专家分:6657
注 册:2005-11-7
得分:0 
能把你连接数据库的代码发上来吗?

本来无一物,何处惹尘埃
It is empty at all here, Why pm 2.5 is so TMD high!
2005-12-30 09:26
阳光白雪
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:39
帖 子:2220
专家分:0
注 册:2005-11-18
得分:0 
[QUOTE]<%
dim content,title
title="<sdaflhasdf>"
content="<asldkfhsakdjf>"
response.Write title&content&title
%>[/QUOTE]

这段在输出的时候页面上就是空白!

专注于WEB前端交互平台开发:[url=http://blog./]blog.[/url](富客户端技术(RIA)交流平台)
2005-12-30 09:34
冰镇柠檬汁儿
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:北京
等 级:版主
威 望:120
帖 子:8074
专家分:6657
注 册:2005-11-7
得分:0 
以下是引用阳光白雪在2005-12-30 9:34:00的发言:
<%
dim content,title
title="<sdaflhasdf>"
content="<asldkfhsakdjf>"
response.Write title&content&title
%>


这段在输出的时候页面上就是空白!

你把<和>去掉就能打出来


本来无一物,何处惹尘埃
It is empty at all here, Why pm 2.5 is so TMD high!
2005-12-30 09:51
冰镇柠檬汁儿
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:北京
等 级:版主
威 望:120
帖 子:8074
专家分:6657
注 册:2005-11-7
得分:0 

阳光白雪你加“<”就会是空白,因为编译器会把它看作html代码.


本来无一物,何处惹尘埃
It is empty at all here, Why pm 2.5 is so TMD high!
2005-12-30 09:54
阳光白雪
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:39
帖 子:2220
专家分:0
注 册:2005-11-18
得分:0 

楼上的解释的很精辟!!

楼主,没有办法了,在你的程序中找不出一点BUG,我用直接赋值的方法进行了测试,没有问题!


专注于WEB前端交互平台开发:[url=http://blog./]blog.[/url](富客户端技术(RIA)交流平台)
2005-12-30 10:15
酷酷的鱼
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2005-8-9
得分:0 

数据库链接语句
<%
on error resume next
db="../database/zyjlb.mdb"
connstr="DBQ="+server.mappath("../database/zyjlb.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)}"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr
%>


2005-12-30 10:55
阳光白雪
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:39
帖 子:2220
专家分:0
注 册:2005-11-18
得分:0 
on error resume next


把这句去掉运行!!看会不会报错!

专注于WEB前端交互平台开发:[url=http://blog./]blog.[/url](富客户端技术(RIA)交流平台)
2005-12-30 11:00
酷酷的鱼
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2005-8-9
得分:0 

Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'

[Microsoft][ODBC Microsoft Access Driver]常见错误 不能打开注册表关键字 'Temporary (volatile) Jet DSN for process 0xda0 Thread 0xe74 DBC 0xa4515f4 Jet'。

/admin/conn.inc,行 6


2005-12-30 11:21



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-40753-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.651873 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved