Hi!
Everyone there
I am right now doing ColdFusion4.0  and using Ben Forta's book
COLDFUSION 4.0 web application construction kit(third addition)
I was trying to workout some of the listings 
Listing 29.14(INVSRCH5.CFM),in this one it is using "Matches"
operator ,my CF studio is showing me an error 
"THE TAG NAME <MATCHES> NOT FOUND IN CURRENTLY ACTIVE VERSIONS."
Can any one explain me this error and how to make the search work
Thakns in advance

the code is as follows
<!--- DECIDE WHAT CRITERIA WE'LL PASS TO VERITY --->
<CFIF Form.ISBN is not "">
  <!--- IF AN ISBN NUMBER IS GIVEN, USE IT AND IGNORE OTHER INPUT --->
  <CFSET TheCriteria = "CF_CUSTOM1 <MATCHES> #Form.ISBN#">
  
<CFELSE>  
  <CFIF (ParameterExists(Form.CategoryID) is "Yes") AND (Form.Criteria is "")>
    <!--- ONLY A CATEGORY IS SPECIFIED --->
    <CFSET TheCriteria = "(CF_CUSTOM2 <MATCHES> #Form.CategoryID#) ">
        
  <CFELSEIF (ParameterExists(Form.CategoryID) is "No") AND (Form.Criteria is not "")>
    <!--- ONLY KEYWORDS ARE SPECIFIED --->
    <CFSET TheCriteria = "#Form.Criteria#">
        
  <CFELSE>
    <!--- CATEGORY AND KEYWORDS ARE SPECIFIED --->
    <CFSET TheCriteria = "(CF_CUSTOM2 <MATCHES> #Form.CategoryID#) AND 
(#Form.Criteria#)">
        
  </CFIF>       
</CFIF>


<CFSEARCH COLLECTION="Books"
          NAME="GetResults4"
          CRITERIA="#TheCriteria#">


<HTML>

<HEAD>
<TITLE>Search Results</TITLE>
</HEAD>

<BODY>

<H2><CFOUTPUT>#GetResults.RecordCount# books found.</CFOUTPUT></H2>

<P ALIGN="RIGHT"><CFOUTPUT>Actual Criteria Used: 
#HTMLEditFormat(TheCriteria)#</CFOUTPUT></P>

<DL>
<CFOUTPUT QUERY="GetResults4">
  <DT><I>#NumberFormat(Round(Score * 100))#%</I>
      <B>#Title#</B>
  <DD><FONT SIZE="-1"><I>ISBN #Custom1#.</I> #Summary#</FONT>
</CFOUTPUT>
</DL>

</BODY>

</HTML>
-----------------------------------------------
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to