Boolean search - AND?

greenspun.com : LUSENET : S-Mart Shopping Cart : One Thread

How can i add another group name, then have S-mart do a search comparing both? like if i had a list of restaurants, and i wanted to look for only restaurants in downtown, or i wanted to find bars only in a certain part of town? so basically just two group fields to filter selections. that cant be as hard as an OR search is it?

-- peter (thrillkill@unitedstates.com), March 15, 1999

Answers

Hi,

If you want to put one listing in two or more different categories you can do that in the "demo.db" file that stores your information. Look in the "Readme" file.

These item should be pipe delimtited. i.e.

$itemid|$name|$price|$descrip|$image|$weight|$itemurl|$group,$group2|

At the end of the line is "|$group,$group2|" You can list different groups by name just use a "," comma between them.

Jim

-- James L. Farmer (jim@team-blankets.com), June 07, 1999.


Moderation questions? read the FAQ