How to write multiple "IN"?

55 views
Skip to first unread message

Schmutzka

unread,
Sep 29, 2011, 1:06:43 AM9/29/11
to not...@googlegroups.com
One "IN" is: table("owner",$array);
But what about two?

I tried with no effect:
table("owner IN ? AND friend IN ?",$array,$array2);

apfelbox

unread,
Sep 29, 2011, 3:54:01 AM9/29/11
to NotORM
Hi,

try it this way:

$notorm->table->where("owner", $array)->where("friend", $array2);

Cheers
Jannik

Tomáš Votruba

unread,
Sep 29, 2011, 6:06:51 AM9/29/11
to not...@googlegroups.com
Works perfectly, thanks a lot!

Tomas

Tuan Anh

unread,
Mar 13, 2015, 12:27:21 AM3/13/15
to not...@googlegroups.com, zsch...@googlemail.com
perfectly, helpful for me
Reply all
Reply to author
Forward
0 new messages