• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

where column find in string

New Here ,
Aug 20, 2007 Aug 20, 2007

Copy link to clipboard

Copied

Gday,

wonder if someone can help?
i have a url string which looks like this

page.cfm?from=888888888&text=I+faxed+a+note+2day+4+Aaron

i have some code that replaces the + symbol with a space.
i need a query to matches records by the column "NUMBER" to the "from" parameter and if my column "FIRSTNAME" appears in the string "text"

ie WHERE "Aaron" matches Aaron in the string.
TOPICS
Advanced techniques

Views

298

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 20, 2007 Aug 20, 2007

Copy link to clipboard

Copied

how about this:

<CFQUERY datasource="#application.ds#" Name="MatchUpName">
SELECT *
FROM members_table
WHERE Phone = <cfqueryparam cfsqltype="cf_sql_varchar"
value="#Number#"> AND Firstname IN (<cfqueryparam
cfsqltype="cf_sql_varchar" value="#URL.text#" list="yes" separator="+">)
</cfquery>

--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 21, 2007 Aug 21, 2007

Copy link to clipboard

Copied

LATEST
ok thanks for that works well, i just changed the seperator to " "

when i looked at #url.text# i got

hello craig jones

but in the actual url i have text=hello+craig+jones

wierd but it shold be ok using a space as the seperator shouldnt it?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation