I am shure we had this before, but i cant search for IN. :)
I have a field with numbers seperated by ","
And i want a global that takes data for this ids.
Found it:
my @values = split(',', $postids);
...
GT::SQL::Condition->new (post_id => IN => \@values)
I have a field with numbers seperated by ","
And i want a global that takes data for this ids.
Found it:
Code:
my @values = split(',', $postids);
...
GT::SQL::Condition->new (post_id => IN => \@values)