I want update my database from an array except one value from $_POST
$_POST['value'] = 'b';
$array = array('a','ab','b','bb','c','cc');
//insert 'a','ab','bb','c','cc' except $_POST['value'] 'b'
mysql_query("UPDATE core SET list='".$newarray."' WHERE id='".$_POST['id']."' ");
How do I do? use preg_replace remove the $_POST['value'] --> difficulty judge the comma ','
or advanced mysql query skill?