This is a multi-part message in MIME format.
------=_NextPart_000_0157_01BF98E6.A3149B80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I know this is probably a really dumb question, but how can I make CF =
search a database field using more than a single word typed into a =
search box?
E.G.; Search: intel ghz
The title of a news entry in my database is "Intel Pentium III 1 GHz Now =
Available" but it won't find and return this entry. However if the =
search is like this:=20
E.G.; Search: intel
It DOES find the word intel and returns the correct results. Here is =
the CFQUERY code:
<CFQUERY Datasource=3D"Athlonmb" Name=3D"NewsResults">
SELECT Title, NewsID, Date
FROM News
WHERE (Title LIKE '%#SearchText#%')
ORDER BY Date DESC
</cfquery>
Thanks for any help.
-Ryan Shrout
Power Gamerz; K7M.COM
[EMAIL PROTECTED]
------=_NextPart_000_0157_01BF98E6.A3149B80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3013.2600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I know this is probably a really dumb =
question, but=20
how can I make CF search a database field using more than a single word =
typed=20
into a search box?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>E.G.; Search: intel ghz</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>The title of a news entry in my =
database is "Intel=20
Pentium III 1 GHz Now Available" but it won't find and return this =
entry. =20
However if the search is like this: </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>E.G.; =
Search:=20
intel</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>It DOES find the word intel and returns =
the correct=20
results. Here is the CFQUERY code:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><CFQUERY Datasource=3D"Athlonmb"=20
Name=3D"NewsResults"><BR> SELECT Title, NewsID, =
Date<BR> FROM=20
News<BR> WHERE (Title LIKE '%#SearchText#%')<BR> ORDER BY Date =
DESC<BR></cfquery></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for any help.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>-Ryan Shrout<BR>Power Gamerz; =
K7M.COM<BR><A=20
href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A></FONT></DIV></BODY></HTML>
------=_NextPart_000_0157_01BF98E6.A3149B80--
------------------------------------------------------------------------------
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.