|
|
@@ -17,6 +17,8 @@
|
|
|
<div>
|
|
|
<h2>Elementos en la Base de datos</h2>
|
|
|
<div class="elements" style="border:1px solid black;">
|
|
|
+ <ul>
|
|
|
+
|
|
|
<?php
|
|
|
$c = new MongoClient( "mongodb://docker.ugr.es:15074" );
|
|
|
$db = $c->test->elements;
|
|
|
@@ -29,9 +31,10 @@
|
|
|
|
|
|
$cursor = $db->find();
|
|
|
foreach ($cursor as $documento) {
|
|
|
- echo "<p>* Nombre: " . $documento["name"] . "\t <---> \t E-mail: " . $documento["email"] . " ---> <a href='index.php?remove=".$documento["name"]."'>Eliminar usuario</a>\n</p>";
|
|
|
+ echo "<li> Nombre: " . $documento["name"] . " -- E-mail: " . $documento["email"] . " ---> <a href='index.php?remove=".$documento["name"]."'>Eliminar usuario</a></li>";
|
|
|
}
|
|
|
?>
|
|
|
+ </ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
|