i have code like this but when i click submit its give me error mysqli_real_escape_string() expects parameter 2 to be string, array given where should i do or put the mysqli_real_escape_string ?
if(!empty($_POST['poscon'])) {
foreach($_POST['poscon'] as $condition)
$condition=mysqli_real_escape_string($link,$_POST['poscon']);