<?php $array = array('new','used'); $placeholder = implode( ',', array_fill( 0, count( $array ), '?' ) ); $sql = 'select p.name,p.image from product p where p.condition in (' . $placeholder . ')'; echo $sql;
You have javascript disabled. You will not be able to edit any code.