Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

implode in sql query

$sql = "SELECT * FROM table WHERE comp_id IN ('" 
     . implode("','", array_map('mysql_real_escape_string', $arr)) 
     . "')";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #implode #sql #query
ADD COMMENT
Topic
Name
6+6 =