Answers for "get ids as an array from 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 ids as an array from mysql php"

Code answers related to "SQL"

Browse Popular Code Answers by Language