|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-08-10 03:34 UTC] philip@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: kristina
[2010-08-10 03:34 UTC] philip@php.net
[2010-08-12 15:55 UTC] kristina@php.net
[2010-08-15 10:30 UTC] renziming29 at gmail dot com
[2010-08-15 17:54 UTC] kristina@php.net
-Status: Assigned
+Status: Closed
[2010-08-15 17:54 UTC] kristina@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 13:00:02 2026 UTC |
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 ???