帮我看看哪里出了问题?
<% Function company1(n,Table)Table = Lcase(Trim(Table))
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="main">
<tr>
<td width="80%" align="left" height="25" bgcolor="#178EDE"> <font color="#ffffff">最新加入企业</font></td>
<td width="20%" bgcolor="#178EDE"><a href=nchy/mingpian.asp class="linkone" target="_blank"><font color="#ffffff">更多...</font></a></td>
</tr>
</table>
<table width="100%" align="center" cellpadding="0" cellspacing="0" class="main">
<%
set rs=server.CreateObject("adodb.recordset")
sql="select top "&n&" id,company,typename from '"& Table &"' where zj='1' order by dnt desc, place desc"
rs.open sql,conn,1,3
Do While Not Rs.Eof
%>
<tr>
<td width=15></td><td height="18" align="left"><img src="ima/arrow5.gif" width="5" height="5" align="absmiddle">
<% if rs("typename")="装饰装璜" then%> <a href=nchy/zhuangshi-mp.asp?id=<%=trim(rs("id"))%>&typename=<%=rs("typename")%> class="linkone" target="_blank"><%else%><a href=nchy/company_mingpian.asp?id=<%=trim(rs("id"))%>&typename=<%=rs("typename")%> class="linkone" target="_blank"><%end if%><font color="#333333"><%=getStr(trim(rs("company")),18)&".."%></font></a></td>
<td width=20><img src="nchy/img/08065819.gif" ></td>
</tr>
<tr class="trline" height="1">
<td width=15></td><td background="ima/back.gif" height="1" colspan="2"></td>
</tr>
<%
Rs.MoveNext
Loop
Rs.Close
set rs=nothing
%>
</table>
<% End Function%>
调用后提示:查询语法错误。查询子句不完整。