phpmady Posted September 1, 2010 Share Posted September 1, 2010 Hi, $_POST['arr_name']; I want to make the search so that am getting the array values and oputting in IN(val1, val2, val3) Thanks Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 1, 2010 Share Posted September 1, 2010 http://php.net/implode Quote Link to comment Share on other sites More sharing options...
Alex Posted September 1, 2010 Share Posted September 1, 2010 $sql = "SELECT * FROM table WHERE column IN('" . implode("', '", $_POST['arr_name']) . "')"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.