php SELECT FROM table WHERE id in array

133

php SELECT * FROM table WHERE id in array -

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

Comments

Submit
0 Comments