- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
my $cat='';
if ($q->param('category'))
{
my @originalCategory = $q->param('category')?$q->param('category'):undef;
$cat='and (';
my $arg;
foreach $arg(@originalCategory)
{
$cat.= '(ngf.category=';
$cat.= $arg;
$cat.= ') or ';
}
chop ($cat);chop ($cat);chop ($cat);chop ($cat);
$cat .= ')';
}