| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 709 人关注过本帖
标题:过期了报废
只看楼主 加入收藏
gz52
Rank: 1
等 级:新手上路
帖 子:38
专家分:0
注 册:2007-8-5
收藏
 问题点数:0 回复次数:8 
过期了报废
过期了报废

[此贴子已经被作者于2007-8-25 4:19:17编辑过]



ovOOl4qY.bmp (119.72 KB)
图片附件: 游客没有浏览图片的权限,请 登录注册
搜索更多相关主题的帖子: 报废 过期 
2007-08-22 03:38
ayue222
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:341
专家分:0
注 册:2007-7-25
收藏
得分:0 
<%set rs=server.CreateObject("adodb.recordset")
rs.Open "select top 1 baomingid,xingming,sex,peixunjigou,kechengtitle,jointime from baoming where datediff("d",jointime,"&now ()&")=0 order by baomingid desc",conn,1,1
if not (rs.EOF and rs.BOF then)
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="97">
<tr>
<td width="25%" align="center">姓名:</td>
<td width="75%"><%=rs(1)%></td>
</tr>
<tr>
<td align="center">性别:</td>
<td><%=rs(2)%> </td>
</tr>
<tr>
<td align="center">学校:</td>
<td><%=rs(3)%> </td>
</tr>
<tr>
<td align="center">专业:</td>
<td><%=rs(4)%> </td>
</tr>
<tr>
<td align="center">时间:</td>
<td><%=rs(5)%> </td>
</tr>
</table>
<%
end if
rs.close
set rs=nothing%>
2007-08-22 09:13
multiple1902
Rank: 8Rank: 8
等 级:贵宾
威 望:42
帖 子:4881
专家分:671
注 册:2007-2-9
收藏
得分:0 

do while not rs.eof
set xingming=rs("xingming")
set sex=rs("sex")
set peixunjigou=rs("peixunjigou")
set kechengtitle=rs("kechengtitle")
set chushengriqi=rs("chushengriqi")%>

为什么用set?
2007-08-22 09:32
gz52
Rank: 1
等 级:新手上路
帖 子:38
专家分:0
注 册:2007-8-5
收藏
得分:0 
过期失效~~

[此贴子已经被作者于2007-8-25 4:22:06编辑过]



K1KHQeBD.bmp (54.89 KB)
图片附件: 游客没有浏览图片的权限,请 登录注册
2007-08-22 09:46
hmhz
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:30
帖 子:1890
专家分:503
注 册:2006-12-17
收藏
得分:0 
<%
Adate=dateAdd("d",-1,date())&" 23:59:59"
Bdate=now()
set rs=server.CreateObject("adodb.recordset")
rs.Open "select xingming,sex,peixunjigou,kechengtitle,jointime from baoming where jointime Between '"&Adate&"' and '"&Bdate&"' order by baomingid desc",conn,1,1
set xingming=rs("xingming")
set sex=rs("sex")
set peixunjigou=rs("peixunjigou")
set kechengtitle=rs("kechengtitle")
set jointime=rs("jointime")
do while not rs.eof
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="97">
<tr>
<td width="25%" align="center">姓名:</td><td width="75%"><%=xingming%></td>
</tr>
<tr>
<td align="center">性别:</td><td><%=sex%></td>
</tr>
<tr>
<td align="center">学校:</td><td><%=peixunjigou%></td>
</tr>
<tr>
<td align="center">专业:</td><td><%=kechengtitle%></td>
</tr>
<tr>
<td align="center">时间:</td><td><%=jointime%></td>
</tr>
</table>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>

[编程论坛] ASP超级群:49158383  敲门暗号:ASP编程
龍艺博客 http://www.
2007-08-22 10:14
ayue222
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:341
专家分:0
注 册:2007-7-25
收藏
得分:0 
冷汗 ....页面显示的问题偶就吃不准了 ...没有进行实际的测试 ...不能保证页面上能正确显示 ...
不过刚刚看了下有个小小的问题 ...因为是直接COPY你的代码 ..所以没有注意 ....

<%set rs=server.CreateObject("adodb.recordset")
rs.Open "select top 1 baomingid,xingming,sex,peixunjigou,kechengtitle,jointime from baoming where datediff("d",jointime,"&now ()&")=0 order by baomingid desc",conn,1,1
if not (rs.EOF and rs.BOF then)
%>

应该是 if not (rs.EOF and rs.BOF) then
2007-08-22 14:58
gz52
Rank: 1
等 级:新手上路
帖 子:38
专家分:0
注 册:2007-8-5
收藏
得分:0 

过期失效~~

[此贴子已经被作者于2007-8-25 4:22:58编辑过]

2007-08-23 12:10
ayue222
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:341
专家分:0
注 册:2007-7-25
收藏
得分:0 
不会是链接数据库都要咱们帮你连吧 ??
2007-08-23 13:11
gz52
Rank: 1
等 级:新手上路
帖 子:38
专家分:0
注 册:2007-8-5
收藏
得分:0 
过期失效~~

[此贴子已经被作者于2007-8-25 4:22:28编辑过]

2007-08-23 23:50
快速回复:过期了报废
数据加载中...
 
   



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

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