<?php $related = array(1,2,3); $sql = "SELECT id,title,pic1 FROM tbl_products WHERE id IN ("; $sql .= trim(str_repeat("?,",count($related)),","); $sql .= ") LIMIT 3;"; echo $sql;
You have javascript disabled. You will not be able to edit any code.