Answers for "get array of ids from db mysql php"

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 "get array of ids from db mysql php"

Code answers related to "SQL"

Browse Popular Code Answers by Language