<html> <head> <title>Mongodb | Inicio</title> <meta charset="utf-8"> </head> <body> <?php error_reporting(E_ALL | E_STRICT); ini_set('display_errors', 1); require_once 'conection.class.php'; $conexao = new Conection(); $conexao->useBD('localhostBD'); $conexao->useTable('listagem'); // $conexao->insert( Array('nome'=>'pedro','email'=>'*****@*****.**') ); $rows = $conexao->getAll(); function printer($arr) { echo '<pre>' . print_r($arr, 1) . '</pre>'; } ?> <form action="send.php" method="post"> <table> <tr> <td>Nome</td> <td><input type="text" name="nome"></td> </tr> <tr> <td>Email</td> <td><input type="text" name="email"></td>