Hi, I have tried to modify the basic search script to let people
select which directories on our site to search
I have a checkbox
group that fills a variable called $section with things like /dir1/ ,
/dir2/, etc.
then I changed runquery so it looks like this:
select id, Url, Title, Body, length(Body) Size
from html
where Title\Meta\Body like $query
and Url like $section
BUT... if $section has more than one value, I get an empty result.
What am I doing wrong?
Multi-value Variables
A string variable with multiple values becomes a comma-separated list
when used as an argument, so that any of the values match with the
Metamorph like operator. For example, the following query:
<$states = "AL", "MS", "GA", "FL">
<SQL "select capital from State where state like $states">
$capital,
</SQL>
would match any of the given states, because the $states argument
becomes ``(AL,MS,GA,FL)''.
Wade Leftwich <wade@demographics.com>
American Demographics / Marketing Tools, a division of Cowles Business Media
tel 607-273-6343 fax 607-273-3196 http://www.demographics.com/