网页资讯视频图片知道文库贴吧地图采购
进入贴吧全吧搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
07月25日漏签0天
asp吧 关注:33,679贴子:110,982
  • 看贴

  • 图片

  • 吧主推荐

  • 视频

  • 游戏

  • 9回复贴,共1页
<<返回asp吧
>0< 加载中...

请求帮助啊!!每天被虐啊!!

  • 只看楼主
  • 收藏

  • 回复
  • 贤_恶作剧
  • 赛驰网络
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
<!--#Include file="incFiles/Function.asp"-->
<!--#Include file="incFiles/Conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>XXXXXXXXXXX</title>
</head> <body>
<div class="box">
<%
dim rs,strSql
strSql="select id,jobs from job order by id desc"
set rs=server.CreateObject("adodb.recordset")
rs.open strSql,conn,1,1
do while not rs.eof
rstitle=rs("jobs")
if len(rstitle)>10 then
rstitle="<a href='News_View.asp?id="&rs("id")&"' target='_blank'>"&left(rstitle,10)&"..."&"</a>"
else
rstitle="<a href='News_View.asp?id="&rs("id")&"' target='_blank'>"&rstitle&"</a>"
end if
%>
<div class="right">
<ul>
<li style="background:#EFEFEF; height:25px; line-height:25px;width:770px;*width:770px;color:#060; font-weight:900; font-size:15px;margin-left:-20px; margin-top:-20px;*margin-left:-20px; *margin-top:-10px;"><img src="images/jiantou2.jpg" />招贤纳士</li>
</ul>
<ul style=" height:350px; ">
<li>
<%=rstitle%>
</li>
</ul>
</div>
<%
rs.movenext
loop
%>
<%rs.close:set rs=nothing%>
</div> <div class="footer">
</div>
</div>
</body>
</html>
<script type="text/javascript" src="http://www.webdm.cn/themes/script/jquery.js"></script>


  • 贤_恶作剧
  • 赛驰网络
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
我的循环语句貌似出错了!!总是只读取数据库的一条数据!!!请求帮忙啊


2025-07-25 08:22:02
广告
不感兴趣
开通SVIP免广告
  • 贤_恶作剧
  • 赛驰网络
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
哪位大神可以帮我弄一下啊啊!!!我就是一个没接触过asp的人!!结果被要求做这个!!


  • 贤_恶作剧
  • 赛驰网络
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

这个是我的数据库 我要读取jobs这个字段的数据


  • 贤_恶作剧
  • 赛驰网络
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
没人帮我吗??


  • w__miao
  • 门户网站
    7
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
if len(rstitle)>10 then
你判断长度大于10 你数据库中大于10的 就一条数据 输出的应该是uuuu那条数据 把这个10改小点 就都输出了


  • 贤_恶作剧
  • 赛驰网络
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
<div class="box">
<%
dim rs,strSql,rstitle,page
strSql="select id,jobs from job order by id desc"
set rs=server.CreateObject("adodb.recordset")
rs.open strSql,conn,1,1
page=FunSwitch(request("page"),1)
rs.pagesize=20
if page<=0 then
page=1
elseif page>rs.pagecount then
page=rs.pagecount
end if
%>
<div class="right">
<ul>
<li style="background:#EFEFEF; height:25px; line-height:25px;width:770px;*width:770px;color:#060; font-weight:900; font-size:15px;margin-left:-20px; margin-top:-20px;*margin-left:-20px; *margin-top:-10px;"><img src="images/jiantou2.jpg" />招贤纳士</li>
</ul> <ul style=" height:350px; ">
<%
if not rs.eof then
rs.absolutepage=page
do while not rs.eof
rstitle=rs("jobs")
if len(rstitle)>10 then
rstitle="<a href='jobs_View.asp?id="&rs("id")&"' target='_blank'>"&left(rstitle,10)&"..."&"</a>"
else
rstitle="<a href='jobs_View.asp?id="&rs("id")&"' target='_blank'>"&rstitle&"</a>"
end if
%>
<li>
<%=rstitle%>
</li>
<%
rs.movenext
loop
else
response.write "<li><center><font color='#FF0000'>没有招聘信息</font></center></li>"
end if %>
<li style=" margin-top:50px;"> <%=funpage(rs.pagecount,page,rs.recordcount,rs.pagesize)%></li>
</ul>
</div>
<%rs.close:set rs=nothing%> </div>
@w__miao 这个


登录百度账号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 9回复贴,共1页
<<返回asp吧
分享到:
©2025 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示