Search
 
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
Name
2+7 =