I want to INSERT a set of data submitted by $_POST (in form of array) as
foreach($_POST['data'] as $single) {
$set[]="('static', '$single')";
}
$sets=implode(", ", $set);
mysql_query("INSERT INTO table (Static, Data) VALUES $sets");
Where is the best place to use use mysql_real_escape_string to avoid SQL injection, as the data are submitted by users.