DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php sql query where in array
$sql = "SELECT * FROM table WHERE comp_id IN (" . implode(",", array_map('intval', $arr)) . ")";
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#php
#sql
#query
#array
ADD COMMENT
Topic
COMMENT
Name
2+7 =
Submit