Answers for "query from where id is array"

SQL
1

select values from mysql using php array of ids

$sql = 'SELECT * 
          FROM `table` 
         WHERE `id` IN (' . implode(',', array_map('intval', $array)) . ')';
Posted by: Guest on June-27-2020

Code answers related to "query from where id is array"

Code answers related to "SQL"

Browse Popular Code Answers by Language