mysql IN parameter
Posted
by proyb2
on Stack Overflow
See other posts from Stack Overflow
or by proyb2
Published on 2010-05-22T10:01:29Z
Indexed on
2010/05/22
10:10 UTC
Read the original article
Hit count: 230
When the user check more than one (checkbox) option which are then combine into a string of "apple,orange,pear"
SELECT id, pos, FROM $db WHERE dtime>='$now' AND jsub IN ('$arr[1]') ;
When I pass the string to $arr[1], it won't work correctly, how do I split into array and get mysql IN function to process correctly?
© Stack Overflow or respective owner