DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+3 =
Submit