> To enter multiple order numbers they can comma separate like: > 1,34,21,34,54 > What I need to do is take those numbers and make a query that would like > like: > (cart_id in('1','34','21','34','54') OR id in('1','34','21','34','54')) > ANY idea how I can accomplish this?
$string = "'" . implode( "', '", explode( ',', '1,34,21,34,54' )) . "'"; echo "(cart_id in( $string ) OR id in( $string ))"; Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php