Forums

This topic is locked

sql to find match???

Posted 13 Jan 2005 17:02:52
1
has voted
13 Jan 2005 17:02:52 the GH1 posted:
just noticed i cant explain anything <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle> but here goes
Company name: Geordie slang interpreters <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle> ( ha ha please ignore)

never looked at this, so totally unaware, but say you have field for full address in your db like below:

unit 88, some industrial park, newcastle, tyne and wear ne1 ld.

in sql can you use variable passed from user search form to look for a word contained
in the address, say the users types newcastle, or tyne and wear, or NE1??????

eg Ive used the old 'varCounty%' before where type tyne and you'll
get anything starting with tyne so tyne and wear would show......

Any suggestions fella's? <img src=../images/dmxzone/forum/icon_smile_question.gif border=0 align=middle>

Replies

Replied 13 Jan 2005 17:48:43
13 Jan 2005 17:48:43 Lee Diggins replied:
Hi

Not sure what you're after but '%varSearch%' might do, this'll search the entire string for a match.

IS that what you mean?

Digga

Sharing Knowledge Saves Valuable Time!!!
Replied 13 Jan 2005 18:08:46
13 Jan 2005 18:08:46 the GH1 replied:
yep! thats what i wanted to know

thanks will give it a go...

told ya i couldnt explain things properly <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Replied 13 Jan 2005 20:55:49
13 Jan 2005 20:55:49 Chris Charlton replied:
This would be a good DMXzone F.A.Q. question - not sure if there is one for this already.
Replied 13 Jan 2005 21:11:18
13 Jan 2005 21:11:18 the GH1 replied:
yep works a treat, thanks alot

massive pat on the back and gold star for that man
Cheers lee...<img src=../images/dmxzone/forum/icon_smile_approve.gif border=0 align=middle>
Replied 14 Jan 2005 10:47:16
14 Jan 2005 10:47:16 Lee Diggins replied:
Hi Chris

If there's not one do you want to wrie one up or shall I?

GH1&gt;&gt; You're Welcome!

Digga

Sharing Knowledge Saves Valuable Time!!!
Replied 14 Jan 2005 20:27:55
14 Jan 2005 20:27:55 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>If there's not one do you want to wrie one up or shall I?<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
You please. You think I work here?!? lol

Reply to this topic