Author Topic: Search Parameters - two or more words  (Read 4292 times)

0 Members and 1 Guest are viewing this topic.

Offline Tiburon

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.hintergrundbilder.de
Search Parameters - two or more words
« on: September 01, 2005, 06:57:52 PM »
Hi,

I have a problem with the search parameters. What I need is a parameter that searchs for 2 or more keywords but the results must have all this keywords.
An example:

Search for: landscape + Spain
Search string: <a href="/4images/search.php?search_keywords=landscape+Spain">Keyword</a>

The result is that I get all images with keyword Spain and all with keyword landscape, that means I get also landscapes from England, Germany etc.

What I need is a string that gets only those images which have both keywords, will say I want only the landscapes from Spain. Is there a possibility to get that ????  :?:
----------------------------------

Have a nice Day

Offline Tiburon

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.hintergrundbilder.de
Re: Search Parameters - two or more words
« Reply #1 on: September 02, 2005, 08:55:35 AM »
No idea ?????? It should be possible  :(
----------------------------------

Have a nice Day

Offline Tiburon

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.hintergrundbilder.de
Re: Search Parameters - two or more words
« Reply #2 on: September 02, 2005, 02:09:00 PM »
I got it and for all who might have the same problem:

Search for: landscape + Spain

Search string: <a href="/4images/search.php?search_keywords=landscape+Spain">Keyword</a>

Result: All images which contain landscape and/or Spain

Search string: <a href="/4images/search.php?search_keywords=landscape and Spain">Keyword</a>

Result: Only images which contain both keywords !  :D

----------------------------------

Have a nice Day

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: Search Parameters - two or more words
« Reply #3 on: September 02, 2005, 02:37:48 PM »
tiburon

using your search field it is MSN giving answer!

vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline Tiburon

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.hintergrundbilder.de
Re: Search Parameters - two or more words
« Reply #4 on: September 02, 2005, 02:50:17 PM »
Vincent

finally I found it, and I posted it for all the people who are not so very clever like you !
----------------------------------

Have a nice Day