Re: some MDB2 questions

From: Date: Thu, 17 Feb 2005 14:18:03 +0000
Subject: Re: some MDB2 questions
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36242@lists.php.net to get a copy of this message
Lukas Smith schrieb:
function countQueries(&$db, $scope, $message) {
    GLOBALS['count']++;
} $mdb2->setOption('debug_handler', 'countQueries'); $mdb2->setOption('debug', true); $mdb2->query(); $mdb2->query(); echo GLOBALS['count'];
Great! Thank you! I think autoExecute()... is also counted, right? Until today MDB2 seems to work fine for me, I ported one application from pear:db and one from adodb, without using any wrapper.

« previous php.pear.dev (#36242) next »