大哥们帮帮忙,改一下代码,求求你们了!

来源:百度知道 编辑:UC知道 时间:2024/06/18 18:42:27
<!--#include file="conn.asp"-->
<html>
<head>
<title>图片新闻</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><!-- 坚排调用图片新闻 -->
<link rel="stylesheet" type="text/css" href="css.css">
</head>

<body>
<%
sql="select top 4 * from NEWS where firstImageName<>'' and ok=true order by ID DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql,conn,1,1
if not Rs.eof then
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<%do while not rs.eof
%>
<tr>
<td align="center"><a href="onews.asp?id=<%=rs("id")%>" target="_blank" ><img src="uppic/<%=trim(rs(&quo

改过代码如下,希望没有手误,有问题再找我。
<!--#include file="conn.asp"-->
<html>
<head>
<title>图片新闻</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><!-- 坚排调用图片新闻 -->
<link rel="stylesheet" type="text/css" href="css.css">
</head>

<body>
<%
sql="select top 4 * from NEWS where firstImageName<>'' and ok=true order by ID DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql,conn,1,1
if not Rs.eof then
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<%do while not rs.eof
%>
<td align="center">
<div><a href="onews.asp?id=<%=rs("id")%>" target="_blank" ><img src