Answers for "php sql query where in array"

PHP
0

php sql query where in array

$sql = "SELECT * FROM table WHERE comp_id IN (" . implode(",", array_map('intval', $arr)) . ")";
Posted by: Guest on October-30-2021

Browse Popular Code Answers by Language