Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

select values from mysql using php array of ids

$sql = 'SELECT * 
          FROM `table` 
         WHERE `id` IN (' . implode(',', array_map('intval', $array)) . ')';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #values #mysql #php #array #ids
ADD COMMENT
Topic
Name
3+6 =