What might be wrong with this MongoDB update $set query via PHP?
I am a little stuck with an updating on a collection and by that I am I need of your help...

So, I have this query:

    $coll->update(
				array("_id" => new MongoId($_POST["id"])),
				array("$set" => array(
					"contentType" => htmlspecialchars(strip_tags(trim($_POST["type"]))),
					"contentTitle" => htmlspecialchars(strip_tags(trim($_POST["title"]))),
					"contentBody" => htmlspecialchars(strip_tags(trim($_POST["content"])))
				)),
				true,
				false
			);

Please don't bother with the way of validating the $_POST, it's only a test, but it doesn't work... The collection is ok, I have checked that. It doesn't do anything, and when I insert
`var_dump($db->lastError());`
it gives me no errors at all...

Thank you guys, I really appreciate your help! =]

Best regards,
Ben
What might be wrong with this MongoDB update $set query via PHP?
===

I am a little stuck with an updating on a collection and by that I am I need of your help...

So, I have this query:

    $coll->update(
				array("_id" => new MongoId($_POST["id"])),
				array("$set" => array(
					"contentType" => htmlspecialchars(strip_tags(trim($_POST["type"]))),
					"contentTitle" => htmlspecialchars(strip_tags(trim($_POST["title"]))),
					"contentBody" => htmlspecialchars(strip_tags(trim($_POST["content"])))
				)),
				true,
				false
			);

Please don't bother with the way of validating the $_POST, it's only a test, but it doesn't work... The collection is ok, I have checked that. It doesn't do anything, and when I insert
`var_dump($db->lastError());`
it gives me no errors at all...

Thank you guys, I really appreciate your help! =]

Best regards,
Ben