|
<table align="center" cellpadding="3" cellspacing="0" width="99%" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#eeeeee">
<div align="center">招聘公司</div></td>
<td bgcolor="#eeeeee">
<div align="center">进入查看</div></td>
<td bgcolor="#eeeeee">
<div align="center">发布时间</div></td>
</tr>
<%
set rszp=server.CreateObject("adodb.recordset")
rszp.open "select top 8 * from zp where sc=1 order by tdate desc",conn1,1,1
if not rszp.eof then
i=0
do while (not rszp.eof) and (i < 8)
i=i+1
%>
<tr>
<td bgcolor="#FFFFFF">
<div align="center">
<%if rszp("gstitle")="" then%>
<%=mid(rszp("JaAdmin"),1,5)%>
<%else%>
<%=mid(rszp("gstitle"),1,5)%>
<%end if%>
</div></td>
<td bgcolor="#FFFFFF">
<div align="center"><a href=gszps.asp?id=<%=rszp("JaAdmin")%>>查看</a></div></td>
<td bgcolor="#FFFFFF">
<div align="center"><%=rszp("tdate")%></div></td>
</tr>
<tr><td height="1" background="images/line.jpg" colspan="3"></td></tr>
<%
rszp.movenext
loop
else
response.write "<tr><td bgcolor=FFFFFF colspan=3>"
response.write "<div align=center>暂无消息</div></td></tr> "
end if
rszp.close
%>
<% if session("userweb")="公司注册" then%>
<% response.write"<tr><td colspan=3 bgcolor=#FFFFFF>" %>
<%response.write "<div align=right><a href='118user/boke/zp.asp'><font color=#FF0000>我要招聘</font></a> </DIV>"%>
<%response.write"</td></tr>"%>
<%else%>
<% response.write"<tr><td colspan=3 bgcolor=#FFFFFF>" %>
<%response.write "<div align=right><a href='118user/boke/index.asp'><font color=#FF0000>我要招聘</font></a> </DIV>"%>
<%response.write"</td></tr>"%>
<%end if%></table>
我试过distinct 无法运行
select top 8 * from (select distinct 字段 from zp where sc=1 order by tdate desc) 也不行 |
|