我遇到了一些 Coldfusion/SQL 查询输出的奇怪问题。实际数据正在正确生成,但在页面底部它输出“图书馆/图书馆/图书馆/图书馆/图书馆/图书馆/图书馆/图书馆”,我无法辨别。
它总是以这种格式输出,总是 8 次,无论我要搜索多少个术语,返回多少条记录,或者分组后生成多少文本。
它不会发生在所有页面上,但它似乎确实发生在从该数据库中提取查询的网站上的每个页面上......
我迷路了。下面的代码,实时页面在这里:http ://www.audiogo-library.com/client/client_pages/hachettepage.cfm
<cfsetting enablecfoutputonly="yes" showdebugoutput="no">
<!--- Custom Hachette page --->
<cfset todayDate = Now()>
<!--- Link to Style Sheets --->
<img style="margin:auto" src="http://www.audiogo-library.com/Library/client/client_images/hachettelogo.gif"></br>
<cfoutput> #MonthAsString(Month(Now()))# </cfoutput> Releases</br></br>
<cfquery name="GetProductBasicInfo" datasource="#Request.Application.PowerWeb.datasource#" dbtype="odbc">
SELECT product.ProductID, productmarket.imprint, product.IsbnUpc, product.Title, product.FullTitle, product.SubTitle, product.PubDate, product.SKU, productmarket.descriptionshort, productmarket.productform, productmarket.NoOfPieces, productmarket.productmarketid
FROM Product, ProductMarket
WHERE product.productid = productmarket.productid AND product.IsbnUpc LIKE '%61113%' AND product.PubDate BETWEEN '<cfoutput>#DatePart("m", todayDate)#</cfoutput>/01/<cfoutput>#DatePart("yyyy", todayDate)#</cfoutput>' AND '<cfoutput>#DatePart("m", todayDate)#</cfoutput>/31/<cfoutput>#DatePart("yyyy", todayDate)#</cfoutput>'
ORDER BY product.FullTitle ASC
</cfquery>
<cfoutput query="GetProductBasicInfo" Group="FullTitle">
<table width="90%" border="0" style="margin-top:15px;">
<tr>
<td><p><a href="http://www.audiogo-library.com/library/productdetails.cfm?sku=#SKU#">
<cfif #FullTitle# eq ''> <div class="title"> #Title# </div>
<cfelse> <div class="title">#FullTitle# </div> </a>
</cfif></p>
<p>
<cfif #descriptionshort# neq ''> #descriptionshort# </cfif>
</p>
</td>
<td width="30%"><a href="http://www.audiogo-library.com/library/productdetails.cfm?sku=#SKU#"> <img src="http://www.audiogo-library.com/library/client/Products/ProdimageLg/#SKU#.jpg"></a></td>
</tr>
</table>
</cfoutput>
TestText