".$_POST['slogan']."
"; $obj = array( "slogan" => $slogan, "author" => $commentator, "comment" => $comment ); $collection->insert($obj); } // find everything in the collection $query = array("author" => "Chogyam Trungpa"); $cursor = $collection->find($query); echo $cursor->count(); // iterate through the results foreach ($cursor as $obj) { echo "".$obj["comment"] ." -- ".$obj["author"]."
\n"; } ?> Add a slogan