Page 1 of 1

spliting string into structured string

Posted: Sun Sep 26, 2004 7:21 am
by pelegk2
i want to do something like this :
for example i have a lost of permission as starts as a string :
1,3,6,8,22,56,89
and i dont want to do a loop which will build me a query like this L:
id=1 or id=2 or id=6......
can i do this in once command in php?
i think i saw something similar in php but i am not sure
thanks in advance
peleg

Posted: Sun Sep 26, 2004 9:40 am
by feyd
:arrow: [mysql_man]IN[/mysql_man]