i have an array which come from form and i add commas between values with implode. But i have to add single quotes at start and end of values.
$form_values = $_GET['values'];
$sql.=" WHERE value IN (".implode(',',$form_values).")";
i use this query and it gives a result like that.
value1,value2,value3
and i use this values for my sql query. But i have to add single quotes also at start and end of these values. It must be like this;
'value1','value2','value3'
I really don't know how can i add these single quotes.