scripts ..can anybody provide me with a sample database for eg.the database
of a project like SURVEY .as i am not getting how to work on mongo through
PHP .just to elaborate what i mean i am giving a sample along.
<?php
$document = array(
"_id" => "derickr",
"name" => "Derick Rethans",
"articles" => array(
array(
"title" => "Profiling PHP Applications",
"url" => "http://derickrethans.nl/talks/profiling-phptourlille11.pdf",
),
array(
"title" => "Xdebug",
"url" => "http://derickrethans.nl/talks/xdebug-phpbcn11.pdf",
)
)
);
$m = new Mongo();
var_dump( $m->demo->articles->insert( $document ) );
?>
--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
mongodb-user+[email protected]
See also the IRC channel -- freenode.net#mongodb
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.