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 Link to comment https://forums.phpfreaks.com/topic/212299-how-to-get-the-array-values-and-placing-in-in123/ Share on other sites More sharing options...
PFMaBiSmAd Posted September 1, 2010 Share Posted September 1, 2010 http://php.net/implode Link to comment https://forums.phpfreaks.com/topic/212299-how-to-get-the-array-values-and-placing-in-in123/#findComment-1106194 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']) . "')"; Link to comment https://forums.phpfreaks.com/topic/212299-how-to-get-the-array-values-and-placing-in-in123/#findComment-1106196 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.