• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[PHP] DBA with Zend_Db/Zend_Db_Table_Abstract

Experienced Elementalist
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 :
PHP:
$db = new Factory_Db_Driver("/configfile.xml");
$sql = 'SELECT * FROM news WHERE article_id = ?';
$result = $db->fetchAll($sql, 2);
and use Zend_Db_Table_Abstract without any settings :
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
 
Back
Top