mardi 21 avril 2015

Comments in all the same page

Vote count: -2

i have for example two articles and when i post a comments, the comments display in both pages.

i dont know what part of the code show you?

this is the beginning of the two page

<?php
    session_start();

    try {
        $connection = new MongoClient();
        $database   = $connection->selectDB('projet');
        $collection = $database->selectCollection('articles');
    } Catch(MongoException $e) {
        die("Failed to connect to database ".$e->getMessage());
    }

    $cursor = $collection->find();

    ?>

asked 1 min ago



Comments in all the same page

Aucun commentaire:

Enregistrer un commentaire