$sql = "select * from hoge where foo = ? and bar = ?"; $sth =& $db->prepare($sql); if (PEAR::isError($sth)) {....} $result =& $db->execute($sql, array($a, $b));
としてみたが、Call to undefined method Ethna_DB_PEAR::prepare()と返る。 ?と思ってEthna_DB_PEAR.phpをみると・・・。なるほど。