select values from mysql using php array of ids

125

select values from mysql using php array of ids -

$sql = 'SELECT * 
          FROM `table` 
         WHERE `id` IN (' . implode(',', array_map('intval', $array)) . ')';

Comments

Submit
0 Comments