- Joined
- Apr 7, 2005
- Messages
- 254
- Reaction score
- 0
I wrote my own extended DBA classes pack for Zend_Db/Zend_Db_Table_Abstract compatibility. So with this pack you can use simple queries :
and use Zend_Db_Table_Abstract without any settings :
http://files.codenetwork.ru/Factory.rar
----------------
Listening to: Depeche Mode - Personal Jesus
PHP:
$db = new Factory_Db_Driver("/configfile.xml");
$sql = 'SELECT * FROM news WHERE article_id = ?';
$result = $db->fetchAll($sql, 2);
PHP:
$db = new Factory_Db_Driver("/configfile.xml");
$news = $db->getTable('news'); //Zend_Db_Table_Abstract object returns in variable
while($news->fetchAll() as $val)
{
....
}
----------------
Listening to: Depeche Mode - Personal Jesus