Doc #52220 [Opn->Asn]: mongodb update not work

From: Date: Tue, 10 Aug 2010 01:34:19 +0000
Subject: Doc #52220 [Opn->Asn]: mongodb update not work
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4824@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52220&edit=1 ID: 52220 Updated by: philip@php.net Reported by: renziming29 at 163 dot com Summary: mongodb update not work -Status: Open +Status: Assigned Type: Documentation Problem Package: Unknown/Other Function Operating System: windows 2003 PHP Version: 5.2.13 -Assigned To: +Assigned To: kristina Block user comment: N New Comment: Kristina, does this make sense to you? Previous Comments: ------------------------------------------------------------------------ [2010-07-01 12:41:09] renziming29 at 163 dot com Description: ------------ $m2 = new Mongo("127.0.0.1:27017"); $db2 = $m2 -> TestData; $comname = $db2 -> TestCom; $newdata = array('$set' => array("ComName"=>"qwert"));//$cname $comname -> update(array('ID' => "1419518423"),$newdata); not modify ??? 没有修改成功 Test script: --------------- 1. $m2 = new Mongo("127.0.0.1:27017"); $db2 = $m2 -> TestData; $comname = $db2 -> TestCom; $newdata = array('$set' => array("ComName"=>"qwert"));//$cname $comname -> update(array('ID' => "1419518423"),$newdata); not modify 2. $query = array('ID' => $comid); //##$cursor = $comname -> find($query);//NULL //@@$cursor = $comname -> find(); the @@ line is work the ## line is not wok ??? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52220&edit=1

« previous php.doc.bugs (#4824) next »