Answers for "implode in sql query"

SQL
0

implode in sql query

$sql = "SELECT * FROM table WHERE comp_id IN ('" 
     . implode("','", array_map('mysql_real_escape_string', $arr)) 
     . "')";
Posted by: Guest on November-24-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language