If =you want this to work, just inside the founditems of the =search
(which sounds like it can be over-inclusive but not under) I'd =try
something like:
[founditems]
[listwords =words=3D[region]&delimiter=3D;]
[showif =[word]=3D.com]
[/showif]
[/listwords]
[/founditems]
Bi=ll
On Thu, Sep 1, 2011 at 3:54 AM, Stuart Tremain <webdna@idfk.com.au> =wrote:Hi GuysI have a product db that sells different product to =different regions.The db =looks something like thisSKU = PRODUCTNAME = REGION1 = red = = .com;2 = blue = = .com;.com.au;3 = green = = .com.au;4 = yellow = =.co.ukAs you can see I am =determining the regions from the HTTP_HOST- [ListMIMEHeaders =name=3DHTTP_HOST][value][/ListMIMEHeaders]I am having a bit of a problem with the search =thoughThis works OK due to =.co.uk[SEARCHdb=3D^data/celmecproducts.db&woREGIONSdatarq=3D.co.uk&am=p;REGIONword=3Dww®IONSwbrk=3D;]But if I use .com the green product also shows ( I should =only get red &blue)I could do =the db in a different format but it would be nice to get this =towork.Any ideas =??Thanks =:)Stuart =TremainIDFK Web =DevelopmentsAUSTRALIAwebdna@idfk.com.au=--------------------------------------------------------- =This message issent to you =because you are subscribed to the mailing list . To =unsubscribe,E-mail to: =archives: http://mail.webdna.us/l=ist/talk@webdna.us BugReporting: support@webdna.us--=-------------------------------------------------------
This message =is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archi=ves: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us
|
If =you want this to work, just inside the founditems of the =search
(which sounds like it can be over-inclusive but not under) I'd =try
something like:
[founditems]
[listwords =words=3D[region]&delimiter=3D;]
[showif =[word]=3D.com]
[/showif]
[/listwords]
[/founditems]
Bi=ll
On Thu, Sep 1, 2011 at 3:54 AM, Stuart Tremain <webdna@idfk.com.au> =wrote:Hi GuysI have a product db that sells different product to =different regions.The db =looks something like thisSKU = PRODUCTNAME = REGION1 = red = = .com;2 = blue = = .com;.com.au;3 = green = = .com.au;4 = yellow = =.co.ukAs you can see I am =determining the regions from the HTTP_HOST- [ListMIMEHeaders =name=3DHTTP_HOST][value][/ListMIMEHeaders]I am having a bit of a problem with the search =thoughThis works OK due to =.co.uk[SEARCHdb=3D^data/celmecproducts.db&woREGIONSdatarq=3D.co.uk&am=p;REGIONword=3Dww®IONSwbrk=3D;]But if I use .com the green product also shows ( I should =only get red &blue)I could do =the db in a different format but it would be nice to get this =towork.Any ideas =??Thanks =:)Stuart =TremainIDFK Web =DevelopmentsAUSTRALIAwebdna@idfk.com.au=--------------------------------------------------------- =This message issent to you =because you are subscribed to the mailing list . To =unsubscribe,E-mail to: =archives: http://mail.webdna.us/l=ist/talk@webdna.us BugReporting: support@webdna.us--=-------------------------------------------------------
This message =is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archi=ves: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...