我用的是科讯6.5的系统,用SQL标签:
查询语句是:select KS_Enterprise.qq,KS_Enterprise.Telphone,KS_Blog.Logo from KS_Enterprise,KS_Blog where KS_Enterprise.UserName = KS_Blog.UserName
循环体是:[loop=10]
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#E7E7E7"><td width="150" height="26" align="center">企业标志</td><td width="300" align="center">公司/简要介绍</td><td width="100" align="center">所在地区</div></td><td width="90" align="center">联系电话</td><td width="85" align="center">在线QQ咨询</td></tr>
<tr>
<td><div style="border:1px solid #666666;padding:1px"><a href='../space/?456789' target='_blank'><img src="/UploadFiles/User/123456/logo.jpg" width=120 height=47 border='0'></a></div></td>
<td><a href="../space/?456789" target="_blank"><div style='font-weight:bold;font-size:14px;text-decoration:underline;margin:2px;'></div></a></td>
<td align="center"> </td>
<td align="center"> </td>
<td align="center"><a href="tencent://message/?uin=" target="_blank"><img src="/images/style_47.jpg" alt="点击与我联系" width="77" height="25" border="0"></a></td>
</tr>
</table>
[/loop]
来没来的及添加,前台一刷新就出现:
Microsoft VBScript 运行时错误 错误 '800a0009' 下标越界: '[number: 0]' F:\徐洪权网站\数据库\电机保护网\WWW\20101014\KESIONCMS V6.5 SP4 FREE BUILD0729\COMPANY\../KS_Cls/Kesion.Label.SQLCls.asp,行 234
请高手提点下。