반응형
MongoDB의 $값을 : 로 바꾸고 싶다면
.php 상단에 아래 한줄을 추가 해 주면 된다.
ini_set("mongo.cmd", ":");
$inc를 아래와 같이 :inc 이런식으로 사용하면 된다.
$collection->update(array("no" => $vote_number), array(":inc" => array("count" => 1)));
반응형
TAG MongoDB
댓글을 달아 주세요