Thank you very much! -----Original Message----- From: Jared Rypka-Hauer - CMG, LLC [mailto:[EMAIL PROTECTED] Sent: Saturday, April 16, 2005 11:11 AM To: CF-Talk Subject: Re: Need Help Parsing Text
OOPS, correction below... I got the AUTHOR column named incorrectly... sorry. If you want, you can view it here, too: http://w2ksrv1.neo.servequake.com/tmp/ath.cfm I'll leave it up for a few days... Laterz, J <cfset myString = "AUTHOR='GIESEMAN','SMITH', ABSTRACT='CAT','DOG','FISH'"> <cfset myString = replace(myString,", ","||","all")> <cfset listOne = listFirst(myString,"||")> <cfset listTwo = listLast(myString,"||")> <cfset listOneEnd = listLast(listOne,"=")> <cfset listTwoEnd = listLast(listTwo,"=")> <pre> <cfoutput> select * from tbl_whatever where author in (#listOneEnd#) and abstract in (#listtwoend#) </cfoutput> </pre> On 4/15/05, Gieseman, Athelene <[EMAIL PROTECTED]> wrote: > I have a text field that contains saved search criteria. The field is > called CRITERIA. I need to take the criteria in the field and make a valid > SQL query out of it. For example, I have a record in the table that has the > following in the CRITERIA field: -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203140 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

