I have a function to making a insert query, But if i use mysqli_real_escape_string
its not response with the values. This is the problem inside the array map so i can't figure out how to solve this.
Server version: 5.6.24 - MySQL Community Server (GPL)
My function is:
function insertQryStr($array, $table){
$insertUrl = "insert into %s(%s) values('%s')";
$insertQryStr = sprintf($insertUrl, $table, implode(', ',@array_map('mysql_real_escape_string', @array_keys($array))), implode("', '", @array_map('mysql_escape_string', $array)));
return $insertQryStr;
}