We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    Quote from: BobRay at Dec 19, 2014, 02:12 PM
    That's really nice Bruno. It should be much faster than my version since yours will make one query to the DB and mine will make one for each user.

    I was considering doing something similar with getCollectionGraph() but was too lazy to work it out. wink


    I think so. I'm using

    if ($c->stmt->execute()) {
        if (!$rows = $c->stmt->fetchAll(PDO::FETCH_ASSOC)) {
            $rows = array();
        }
    }
    


    internally to get the results, which should also make it a bit faster than getCollection or getCollectionGraph
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!