Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: MYSQL IN(): Edit Log

Here is the list of edits for this post
MYSQL IN()
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:

Code:

my @values = split(',', $postids);
...
GT::SQL::Condition->new (post_id => IN => \@values)

Last edited by:

Robert: Dec 18, 2016, 9:57 AM

Edit Log: