05/12/05 12:01:45
>>58に続いて、
$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をみると・・・。なるほど。
でも、>>58の書き方を禁止する意味って何なんだろうか?
うーむ。さっぱりわからないです。