Hello,
I need to make a modification on the sub query that would allow a user do a keyword search with a range search.
I have one field that is for a mod that I did to have subcategories. I would like the query to do a range search on that field, and a keyword on all the others.... I tried many time by my self, but had no success.
this is what I tried last time:
if ($in{'keyword'}) {
$i = 0;
$in{'ma'} = "on";
foreach $column (@db_cols) {
if (($db_sort{$column} eq 'date') or &date_to_unix($in{'keyword'})) { $i++; next; }
if ($i == $auth_user_field) { $i++; next; }
if ($i == 15) { <---- this is the range field
push (@search_gt_fields, $i); <--- changes
$in{$column} = $in{'Sub'}; <----
$i++;
}
else {
push (@search_fields, $i);
$in{$column} = $in{'keyword'};
$i++;
}
}
else {
...
Thanks.
I need to make a modification on the sub query that would allow a user do a keyword search with a range search.
I have one field that is for a mod that I did to have subcategories. I would like the query to do a range search on that field, and a keyword on all the others.... I tried many time by my self, but had no success.
this is what I tried last time:
if ($in{'keyword'}) {
$i = 0;
$in{'ma'} = "on";
foreach $column (@db_cols) {
if (($db_sort{$column} eq 'date') or &date_to_unix($in{'keyword'})) { $i++; next; }
if ($i == $auth_user_field) { $i++; next; }
if ($i == 15) { <---- this is the range field
push (@search_gt_fields, $i); <--- changes
$in{$column} = $in{'Sub'}; <----
$i++;
}
else {
push (@search_fields, $i);
$in{$column} = $in{'keyword'};
$i++;
}
}
else {
...
Thanks.