Gossamer Forum
Quote Reply
PHP Search
Hi All,

I have 2 fields one of them is called CountryTo and the other one is CountryFrom and I use it for a phone card company. When I do a search for CountryTo = Canada and CountryFrom = United States it shows me all the results from United Kingdom as well! I know that this is because United Kingdom has the word "United" in it!

What should I use in my search page in order to only see United States when I do a search like this?

Thanks in advance,
PCMANIAK
Quote Reply
Re: [pcmania] PHP Search In reply to
You might want to post this type of request in the Links SQL PHP Forum.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [pcmania] PHP Search In reply to
Hi,

Can you post an example of what your search form looks like? If you do:

<input name="CountryFrom" value="United States">

it should look for 'United States' exactly. It shouldn't match United Kingdom. Only thing I can think of is you are passing it in via URL and not escaping the space, so only CountryFrom=United is getting to the script.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] PHP Search In reply to
I seem to remember you saying this advanced search feature wasn't present in the PHP search...or was that just advanced searches, likew => == <= etc.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates