URL phrase for multiple keywords

4 posts by 2 authors in: Forums > CMS Builder
Last Post: January 12, 2011   (RSS)

Probably an obvious answer, but I can't figure it out. What would the URL when I want the results to display 2 or more keywords, for example, I want to combine Egypt, Syria, Jordan and Turkey as a grouped URL result. For example, if I want just Turkey, I do this: http://acac6262.staging-zeus.netregistry.net/tours_summary.php?country_list_keyword=Turkey, but how do I include Egypt, Syria, Jordan and Turkey. I've tried the &, comma, etc but nothing works??

Thanks

Re: [Jason] URL phrase for multiple keywords

Hi Jason
Ummm, where do I put this code? I am assuming on the page where I want the result to appear? And I've tried every variation of this order, and keep getting errors. Is the order it's supposed to appear in?

Alternatively, I was wondering whether the "where" or "limit" can achieve the same thing? The country_list is a seperate table, where the field name "title" is the where the country name is inserted. Would this work as this sort of makes more sense, but I can't get this kind of phrase to work and there's nothing similar on the forum.

Thanks

Re: [degreesnorth] URL phrase for multiple keywords

By Jason - January 12, 2011

Hi,

Limit just takes in a number to limit the number of records that are returned, so this wouldn't help with what you're trying to do.

What is the error you're getting? The code I gave you would appear in the order I showed.

What is the name of the field in tours that you're trying to search? What type of field is it? If it's a list field, what is the option value of that list?

Let me know and we'll see what we can do. If you could also attach the .php file you're working with, I can take a look at that too.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/